X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=backupninja;h=3943724d3449c0ef12b02eaaf9fd7553c2522ac1;hp=ac504d605af123ae0f471f9f3e2ce457e511d90d;hb=c7e96acc455c3b5c74f97e812072e1a55664adce;hpb=fb77e731737f3ca96f1295f9ee1f9f58278da84e diff --git a/backupninja b/backupninja index ac504d6..3943724 100755 --- a/backupninja +++ b/backupninja @@ -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"