rdiff works with sshd banner... rdiff local dest works... create logfile... when...
[matthijs/upstream/backupninja.git] / backupninja
index ac504d605af123ae0f471f9f3e2ce457e511d90d..3943724d3449c0ef12b02eaaf9fd7553c2522ac1 100755 (executable)
@@ -267,6 +267,8 @@ function process_action() {
        getconf when "$defaultwhen"
        if [ "$processnow" == 1 ]; then
                info "running $file because of --now"
+       elif [ "$when" == "hourly" ]; then
+               debug "running $file because 'when = hourly'"
        else
                IFS=$'\t\n'
                for w in $when; do
@@ -408,6 +410,7 @@ getconf GZIP /bin/gzip
 getconf RSYNC /usr/bin/rsync
 
 [ -d "$configdirectory" ] || fatal "Configuration directory '$configdirectory' not found."
+[ -f "$logfile" ] || touch $logfile
 
 if [ "$UID" != "0" ]; then
        echo "$0 can only be run as root"