From ac70a93787943e4529e7c74ae76de58023ac83b8 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 27 Jul 2015 18:48:25 +0200 Subject: [PATCH] Don't add "--rsh=..." to rsync command line in "local" mode --- bin/backup-script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/backup-script b/bin/backup-script index a8e2700..85b62a8 100755 --- a/bin/backup-script +++ b/bin/backup-script @@ -385,7 +385,8 @@ for f in $sys; do # prepare (remote) command ... cmd="rsync --archive" [ "$compress" -ne 0 ] && cmd="$cmd --compress" - cmd="$cmd --rsh=\"$ssh_cmd\" --delete --delete-excluded --sparse" + [ "$local" -eq 0 ] && cmd="$cmd --rsh=\"$ssh_cmd\"" + cmd="$cmd --delete --delete-excluded --sparse" [ "$VERBOSE" -gt 0 ] && cmd="$cmd --progress" if [ "$source_root" = "$default_source_root" ]; then cmd="$cmd --exclude=/dev --exclude=/proc --exclude=/sys" -- 2.39.2