|
@@ -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
|