From 3ac357dd957c88b22575bdde9d65ae29fe073250 Mon Sep 17 00:00:00 2001
From: intrigeri <intrigeri@boum.org>
Date: Sat, 25 Feb 2012 14:54:23 +0100
Subject: [PATCH] Report failure of rdiff-backup jobs as such.

---
 ChangeLog         | 2 ++
 handlers/rdiff.in | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2268aa4..8a75d2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@ version 1.0 -- UNRELEASED
 	 . Don't attempt to dump performance_schema database (Redmine#3741).
 	pgsql:
 	 . Don't produce empty uncompressed backups (Redmine#3820).
+	rdiff-backup:
+	 . Use fatal function to report failure of rdiff-backup jobs as such.
 	rysnc:
 	 . Fix numericids option (Redmine#3691).
 	 . Mangle $rsync_options just afterwards (Redmine#3702).
diff --git a/handlers/rdiff.in b/handlers/rdiff.in
index c2f5aa0..c3c8d1d 100644
--- a/handlers/rdiff.in
+++ b/handlers/rdiff.in
@@ -271,8 +271,8 @@ if [ $test = 0 ]; then
       debug $output
       info "Successfully finished backing up source $label"
    else
-      warning $output
-      warning "Failed backup up source $label"
+      error $output
+      fatal "Failed backup up source $label"
    fi
 fi
 
-- 
GitLab