aboutsummaryrefslogtreecommitdiff
path: root/src/backupninja.in
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-03-04 10:29:26 +0000
committerMicah Anderson <micah@riseup.net>2007-03-04 10:29:26 +0000
commitc0126ff1ef90513ce5df48fc41326704a2cef555 (patch)
treeb3dc121268c91ac4d6c688b73e4deefafba22fe5 /src/backupninja.in
parent05c26446ed65681528387f6c66473c61eebe7224 (diff)
downloadbackupninja-c0126ff1ef90513ce5df48fc41326704a2cef555.tar.gz
backupninja-c0126ff1ef90513ce5df48fc41326704a2cef555.tar.bz2
added ninjareport
added ale to AUTHORS for ldap fixes adjusted sys handler to allow for turning off of sfdisk (#404071)
Diffstat (limited to 'src/backupninja.in')
-rwxr-xr-xsrc/backupninja.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backupninja.in b/src/backupninja.in
index 02ffa25..ef959f2 100755
--- a/src/backupninja.in
+++ b/src/backupninja.in
@@ -433,9 +433,12 @@ setfile $conffile
# get global config options (second param is the default)
getconf configdirectory @CFGDIR@/backup.d
getconf scriptdirectory @datadir@
+getconf reportdirectory
getconf reportemail
+getconf reporthost
getconf reportspace
getconf reportsuccess yes
+getconf reportuser
getconf reportwarning yes
getconf loglevel 3
getconf when "Everyday at 01:00"
@@ -555,3 +558,8 @@ fi
if [ $actions_run != 0 ]; then
info "FINISHED: $actions_run actions run. $fatals fatal. $errors error. $warnings warning."
fi
+
+if [ -n "$reporthost" ]; then
+ debug "send $logfile to $reportuser@$reporthost:$reportdirectory"
+ rsync -qt $logfile $reportuser@$reporthost:$reportdirectory
+fi