projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed Trac#11
[matthijs/upstream/backupninja.git]
/
src
/
backupninja.in
diff --git
a/src/backupninja.in
b/src/backupninja.in
index 02ffa25b519fc5cd7f860cd580b3c5ca8918169e..0cd186ac6213823115789363374205ad409254ea 100755
(executable)
--- a/
src/backupninja.in
+++ b/
src/backupninja.in
@@
-178,7
+178,7
@@
function tolower() {
# simple to integer function
function toint() {
# simple to integer function
function toint() {
- echo "$1" | tr -d
[:alpha:]
+ echo "$1" | tr -d
'[:alpha:]'
}
#
}
#
@@
-433,9
+433,12
@@
setfile $conffile
# get global config options (second param is the default)
getconf configdirectory @CFGDIR@/backup.d
getconf scriptdirectory @datadir@
# get global config options (second param is the default)
getconf configdirectory @CFGDIR@/backup.d
getconf scriptdirectory @datadir@
+getconf reportdirectory
getconf reportemail
getconf reportemail
+getconf reporthost
getconf reportspace
getconf reportsuccess yes
getconf reportspace
getconf reportsuccess yes
+getconf reportuser
getconf reportwarning yes
getconf loglevel 3
getconf when "Everyday at 01:00"
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 [ $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