-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Host rpi | ||
Host rpi rpi.local | ||
User pi | ||
|
||
Host rg351mp rg351mp.local | ||
User root | ||
|
||
Host * | ||
AddKeysToAgent yes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env fish | ||
|
||
set -l excludes_file (mktemp) | ||
|
||
printf "\ | ||
homebrew | ||
bios | ||
screenshots | ||
gamedata/dosbox | ||
gamedata/drastic | ||
gamedata/hatari | ||
gamedata/mupen64plussa | ||
gamedata/ppsspp | ||
backup | ||
*.old | ||
.DS_Store | ||
._* | ||
.smbdelete* | ||
" > $excludes_file | ||
|
||
if test ! -e /Volumes/Retro | ||
echo 'Mounting server directory...' | ||
open -g 'smb://guest:@rpi/Data/Retro' | ||
|
||
while true | ||
test -e /Volumes/Retro && break | ||
sleep 1 | ||
end | ||
end | ||
|
||
echo 'Syncing...' | ||
rsync -rz --times --itemize-changes --prune-empty-dirs --stats \ | ||
--exclude-from=$excludes_file \ | ||
'rg351mp:roms/*' \ | ||
/Volumes/Retro/roms/ |