aboutsummaryrefslogtreecommitdiff
path: root/handlers/rsync.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-05-13 02:11:27 +0200
committerintrigeri <intrigeri@boum.org>2012-05-13 02:11:27 +0200
commit8e3981f444e30fbfba5bc6ddcaf3649c3d298fc6 (patch)
treeec55851ea6892a8250abcb4b9f22e26d3a928302 /handlers/rsync.in
parentb7a92b20f8c139fff7e0febc0275c25c5c254d94 (diff)
parent39bb9e605f04665f8d838be442d9224745959872 (diff)
downloadbackupninja-8e3981f444e30fbfba5bc6ddcaf3649c3d298fc6.tar.gz
backupninja-8e3981f444e30fbfba5bc6ddcaf3649c3d298fc6.tar.bz2
Merge remote-tracking branch 'sarava/bug/3882'
Diffstat (limited to 'handlers/rsync.in')
-rw-r--r--handlers/rsync.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index 5d8c777..f925a20 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -277,9 +277,7 @@ function eval_config {
mv=move_files
fi
- for path in $exclude; do
- excludes="$excludes --exclude=$path"
- done
+ excludes=`echo "$exclude" | @SED@ "s/^/--exclude='/g" -e "s/ /' --exclude='/g" -e "s/$/'/"`
}
@@ -1132,8 +1130,8 @@ for SECTION in $include; do
set_dest
info "Syncing $SECTION on $dest_path..."
- debug $nice $rsync "${rsync_options[@]}" $filelist_flag $excludes $batch_option $orig $dest_path
- $nice $rsync "${rsync_options[@]}" $filelist_flag $excludes $batch_option $orig $dest_path | tee -a $log
+ debug $nice $rsync "${rsync_options[@]}" $filelist_flag "$excludes" $batch_option $orig $dest_path
+ $nice $rsync "${rsync_options[@]}" $filelist_flag "$excludes" $batch_option $orig $dest_path | tee -a $log
if [ "$?" != "0" ]; then
fatal "Rsync error when trying to transfer $SECTION"