diff options
Diffstat (limited to 'backup')
-rwxr-xr-x | backup | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -22,13 +22,13 @@ if [ $? -eq 0 ]; then rsync -kavv smnr@mirfac.uberspace.de: /media/dock/b/mirfac.uberspace.de fi -#ping -q -w 1 -c 1 oneal -#if [ $? -eq 0 ]; then -# rsync -e "ssh" --rsync-path="sudo rsync" --exclude-from /home/pks/.local/bin/backup.exclude --delete -avvHS osmc@oneal:/ /media/dock/b/oneal.local/ -#fi - -#ping -q -w 1 -c 1 w.simianer.de -#if [ $? -eq 0 ]; then -# rsync -e "ssh" --rsync-path="sudo rsync" --rsh='ssh -p 2001' --exclude-from /home/pks/.local/bin/backup.exclude --delete -avvHS pks@w.simianer.de:/ ming.local/ -#fi +ping -q -w 1 -c 1 oneal +if [ $? -eq 0 ]; then + rsync -e "ssh" --rsync-path="sudo rsync" --exclude-from /home/pks/.local/bin/backup.exclude --delete -avvHS osmc@oneal:/ /media/dock/b/oneal.local/ +fi + +ping -q -w 1 -c 1 w.simianer.de +if [ $? -eq 0 ]; then + rsync -e "ssh" --rsync-path="sudo rsync" --rsh='ssh -p 2001' --exclude-from /home/pks/.local/bin/backup.exclude --delete -avvHS pks@w.simianer.de:/ ming.local/ +fi |