diff options
author | Elijah Saxon <elijah@riseup.net> | 2005-04-13 05:29:33 +0000 |
---|---|---|
committer | Elijah Saxon <elijah@riseup.net> | 2005-04-13 05:29:33 +0000 |
commit | c7e96acc455c3b5c74f97e812072e1a55664adce (patch) | |
tree | 114657ceea9ad2a2af1550f2fc64e1a681354298 /backupninja | |
parent | fb77e731737f3ca96f1295f9ee1f9f58278da84e (diff) | |
download | backupninja-c7e96acc455c3b5c74f97e812072e1a55664adce.tar.gz backupninja-c7e96acc455c3b5c74f97e812072e1a55664adce.tar.bz2 |
rdiff works with sshd banner... rdiff local dest works... create logfile... when=hourly... rdiff nice...
Diffstat (limited to 'backupninja')
-rwxr-xr-x | backupninja | 3 |
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" |