X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fbackupninja.in;fp=src%2Fbackupninja.in;h=ef959f2c6c7dc2eede15c5a27584aa2fd4add1ad;hb=7f26a4d16d4ed9a6e377e24082e38fc47e5dee2b;hp=02ffa25b519fc5cd7f860cd580b3c5ca8918169e;hpb=c6a1b1230dcaaf14efa296cd29e748e749a0ed3a;p=matthijs%2Fupstream%2Fbackupninja.git 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