]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Fixing $rsync_options output when rsync is local (Issue #3001)
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 30 May 2011 21:43:57 +0000 (18:43 -0300)
committerintrigeri <intrigeri@boum.org>
Sun, 26 Feb 2012 12:51:24 +0000 (13:51 +0100)
handlers/rsync.in

index ba2b9b579c19504ac66bd8d8e230e4dd6fab588f..e253c5cb34f86e95e6ea3a6404665ea5628b8412 100644 (file)
@@ -1113,8 +1113,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"