From 5dd070caad42afd2368ac1865b312f5b76687f0d Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 27 Jun 2026 19:49:39 +0200 Subject: [PATCH] fix rsync args excludes --- src/backup | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/backup b/src/backup index a7900aa..e9f5828 100755 --- a/src/backup +++ b/src/backup @@ -113,6 +113,9 @@ backup_remote_pathes() local port= local pathes= local excludes= + local YELLOW="\e[0;33m" + local LIGHTPURPLE="\e[1;35m" + local RESET="\e[0m" local rsyncargs=("--archive" \ "--verbose" \ "--sparse" @@ -148,13 +151,7 @@ backup_remote_pathes() rsyncargs+=("--exclude=$exclude") done fi - rsyncargs+=("--rsh=\"ssh -p $port\"") - [ "${#excludes[@]}" -ne 0 ] && rsyncargs+=("${excludes[@]}") - - local YELLOW="\e[0;33m" - local LIGHTPURPLE="\e[1;35m" - local RESET="\e[0m" local path= for path in $pathes; do -- 2.47.3