]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Abort on rsync error (#3692)
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 24 Dec 2011 13:20:40 +0000 (11:20 -0200)
committerintrigeri <intrigeri@boum.org>
Sun, 1 Jan 2012 16:28:14 +0000 (17:28 +0100)
handlers/rsync.in

index ab73051d28316f963641c3d7fa0726be519e9384..ab6496fb6624765fbd823c69d2010e90fd9ecd7c 100644 (file)
@@ -1085,7 +1085,7 @@ for SECTION in $include; do
   $nice $rsync $rsync_options $filelist_flag $excludes $batch_option $orig $dest_path | tee -a $log
 
   if [ "$?" != "0" ]; then
-    warning "Rsync error when trying to transfer $SECTION"
+    fatal "Rsync error when trying to transfer $SECTION"
   fi
 
   update_metadata