aboutsummaryrefslogtreecommitdiff
path: root/backupninja
diff options
context:
space:
mode:
Diffstat (limited to 'backupninja')
-rwxr-xr-xbackupninja3
1 files changed, 3 insertions, 0 deletions
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"