"--human-readable")
local exclude=
for exclude in "${excludes[@]}"; do
- rsyncargs+=("--exclude=\"$exclude\"")
+ rsyncargs+=("--exclude=$exclude")
done
rsyncargs+=("--rsh=\"ssh -p $port\"")
local hostpath="$remote_user@$host:$path"
assert_equal "$(awk 'NR==6 {print; exit}' "$RSYNC_LOG")" "--hard-links"
assert_equal "$(awk 'NR==7 {print; exit}' "$RSYNC_LOG")" "--relative"
assert_equal "$(awk 'NR==8 {print; exit}' "$RSYNC_LOG")" "--human-readable"
- assert_equal "$(awk 'NR==9 {print; exit}' "$RSYNC_LOG")" "--exclude=\"/home/user/.cache\""
- assert_equal "$(awk 'NR==10 {print; exit}' "$RSYNC_LOG")" "--exclude=\"/home/user/.local\""
+ assert_equal "$(awk 'NR==9 {print; exit}' "$RSYNC_LOG")" "--exclude=/home/user/.cache"
+ assert_equal "$(awk 'NR==10 {print; exit}' "$RSYNC_LOG")" "--exclude=/home/user/.local"
assert_equal "$(awk 'NR==11 {print; exit}' "$RSYNC_LOG")" "--rsh=\"ssh -p 22\""
assert_equal "$(awk 'NR==12 {print; exit}' "$RSYNC_LOG")" "backupuser@www.example.com:/etc"
assert_equal "$(awk 'NR==13 {print; exit}' "$RSYNC_LOG")" "build/2000-01-01_01_backup/testpc1"