]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
fix rsync args excludes
authorBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jun 2026 17:49:39 +0000 (19:49 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jun 2026 17:49:39 +0000 (19:49 +0200)
src/backup

index a7900aa219db963bab05badb86c3d78f7a13f3c9..e9f58289db16cc8bc9a63b4682d431e63b6b452f 100755 (executable)
@@ -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