summaryrefslogtreecommitdiff
path: root/backup
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-10-06 12:50:14 +0200
committerPatrick Simianer <p@simianer.de>2016-10-06 12:50:14 +0200
commit493426c80862241849decbcb8e81ffb1de335ef1 (patch)
treeed174d6ded84113499ba80b77770e2f4ef90cde5 /backup
parentf9339d5553a7c62420a2bd0344bdebdedc11910e (diff)
backup
Diffstat (limited to 'backup')
-rwxr-xr-xbackup10
1 files changed, 5 insertions, 5 deletions
diff --git a/backup b/backup
index 30faa40..5a0347f 100755
--- a/backup
+++ b/backup
@@ -25,10 +25,10 @@ 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:/ /media/dock/b/ming.local/
+else
+ 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:/ /media/dock/b/oneal.local/
+ fi
fi