From 540d860e284633ee52fd25f1498883803d209b79 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 15 Jan 2011 01:39:00 +0100 Subject: [PATCH] Do not use --archive on source check Signed-off-by: Nico Schottelius --- ccollect | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ccollect b/ccollect index 172e256..a7ce55b 100755 --- a/ccollect +++ b/ccollect @@ -388,9 +388,9 @@ while [ "${source_no}" -lt "${no_sources}" ]; do # # - # Rsync standard options + # Rsync standard options (archive will be added after is-up-check) # - set -- "$@" "--archive" "--delete" "--numeric-ids" "--relative" \ + set -- "$@" "--delete" "--numeric-ids" "--relative" \ "--delete-excluded" "--sparse" # @@ -437,6 +437,11 @@ while [ "${source_no}" -lt "${no_sources}" ]; do _exit_err "Source ${source} is not readable. Skipping." fi + # + # Add --archive for real backup (looks nice in front) + # + set -- "--archive" "$@" + # # Check: destination exists? #