aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-05-10 17:00:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-05-10 17:00:58 -0300
commitba3e37595d7a8fbf9a881ab0b9b14146eb91f3a2 (patch)
tree181d817896fdac445442b0900795efa4d251fd9c /handlers
parentbf5ada0f0357dd3b7500d03dd4a4a2f84282e8c1 (diff)
downloadbackupninja-bug/3721.tar.gz
backupninja-bug/3721.tar.bz2
Changing a 'fatal' to a 'warning' on rsync handler.bug/3721
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.
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rsync.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index cb72886..6fcda05 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -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