Explorar el Código

[FIX] ssh execution by rsync

Gogs hace 7 años
padre
commit
4aa9c40275
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      scripts/eiru-backup.sh

+ 6 - 6
scripts/eiru-backup.sh

@@ -47,7 +47,7 @@ sync_backups_locally()
 # sync two backup paths remotely
 sync_backups_remotely()
 {
-    rsync -arz "ssh -p $1" $2 "$3@$4:$5"
+    rsync -arze "ssh -p $5" $1 "$2@$3:$4"
 }
 
 if [ ! -x "$(command -v docker)" ]; then
@@ -58,11 +58,11 @@ fi
 perform_backups
 delete_old_backups $BKP_PATH $DAYS_TO_KEEP
 
-if [ ! -x "$(command -v rsync)" ]; then
-    echo "cannot sync backups path"
-    exit 1
-fi
+# if [ ! -x "$(command -v rsync)" ]; then
+#     echo "cannot sync backups path"
+#     exit 1
+# fi
 
-sync_backups_locally "$BKP_PATH/" $SYNC_PATH
+# sync_backups_locally "$BKP_PATH/" $SYNC_PATH
 
 exit 0