diff options
author | intrigeri <intrigeri@boum.org> | 2009-01-12 22:47:08 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2009-01-12 22:47:08 +0000 |
commit | a1c625fcc3c1bdcc81bb23aee3bea95051d6cc20 (patch) | |
tree | 52e6ef2f7aba7ad709d66a04a541e513cd6f06e2 /src/backupninja.in | |
parent | 90a0dc695ad641fb988136cc6f31f44e31771efb (diff) | |
download | backupninja-a1c625fcc3c1bdcc81bb23aee3bea95051d6cc20.tar.gz backupninja-a1c625fcc3c1bdcc81bb23aee3bea95051d6cc20.tar.bz2 |
add support for 'when = manual' (Closes: #511299)
Diffstat (limited to 'src/backupninja.in')
-rwxr-xr-x | src/backupninja.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backupninja.in b/src/backupninja.in index 6dee3b6..2a1b76e 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -208,6 +208,9 @@ nowdayofweek=`tolower "$nowdayofweek"` function isnow() { local when="$1" set -- $when + + [ "$when" == "manual" ] && return 0 + whendayofweek=$1; at=$2; whentime=$3; whenday=`toint "$whendayofweek"` whendayofweek=`tolower "$whendayofweek"` @@ -298,9 +301,9 @@ function process_action() { ret=$? IFS=$'\t\n' if [ $ret == 0 ]; then - debug "skipping $file because it is not $w" + debug "skipping $file because current time does not match $w" else - info ">>>> starting action $file (because it is $w)" + info ">>>> starting action $file (because current time matches $w)" run="yes" fi done |