]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Changing remaining 'exit' to 'fatal' at rsync handler (#3721)
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 10 May 2012 19:53:52 +0000 (16:53 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 10 May 2012 19:53:52 +0000 (16:53 -0300)
handlers/rsync.in

index 884a885f96fa6c20ea9d90a27744efa19a8e8dd4..cb728868ad9206a52a4735cec91764c4f6d3f50c 100644 (file)
@@ -391,8 +391,7 @@ function rotate_long {
   local metadata
 
   if [ ! -d "$backuproot" ]; then
-    echo "Debug: skipping rotate of $backuproot as it doesn't exist."
-    exit
+    fatal "Skipping rotate of $backuproot as it doesn't exist."
   fi
 
   for rottype in daily weekly monthly; do
@@ -509,7 +508,7 @@ function rotate_long_remote {
   now=\`date +%s\`
 
   if [ ! -d "$backuproot" ]; then
-    echo "Debug: skipping rotate of $backuproot as it doesn't exist."
+    echo "Fatal: skipping rotate of $backuproot as it doesn't exist."
     exit
   fi