summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-08-18 10:22:50 +0200
committerPatrick Simianer <p@simianer.de>2016-08-18 10:22:50 +0200
commitf4d6d5a524bbc5262e7a4f0361abb21328e5af66 (patch)
tree31f51fe62ed924056f9889515371a40dbe9d1d29
parent97dbdcfb77ff79b478fa50c18818ed946e5e8de7 (diff)
backup improved
-rwxr-xr-xbackup18
1 files changed, 9 insertions, 9 deletions
diff --git a/backup b/backup
index 464e9ff..8aef973 100755
--- a/backup
+++ b/backup
@@ -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