]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Changing a 'fatal' to a 'warning' on rsync handler. bug/3721
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 10 May 2012 20:00:58 +0000 (17:00 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 10 May 2012 20:00:58 +0000 (17:00 -0300)
Using 'warning' and 'return' instead of a fatal at rotate_long if
backuproot doesn't exist. Using a warning ensures that the backup
action can process the other includes and not just exit.

handlers/rsync.in

index cb728868ad9206a52a4735cec91764c4f6d3f50c..6fcda05e491899016333f2a7665aca3e28f8a643 100644 (file)
@@ -391,7 +391,8 @@ function rotate_long {
   local metadata
 
   if [ ! -d "$backuproot" ]; then
-    fatal "Skipping rotate of $backuproot as it doesn't exist."
+    warning "Skipping rotate of $backuproot as it doesn't exist."
+    return
   fi
 
   for rottype in daily weekly monthly; do