projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for 'when = manual' (Closes: #511299)
[matthijs/upstream/backupninja.git]
/
src
/
backupninja.in
diff --git
a/src/backupninja.in
b/src/backupninja.in
index 6dee3b6163c4920a06e34f95c0e3ebe831277272..2a1b76ebae4c1d512a6a3f800a92a7e9573cc326 100755
(executable)
--- a/
src/backupninja.in
+++ b/
src/backupninja.in
@@
-208,6
+208,9
@@
nowdayofweek=`tolower "$nowdayofweek"`
function isnow() {
local when="$1"
set -- $when
function isnow() {
local when="$1"
set -- $when
+
+ [ "$when" == "manual" ] && return 0
+
whendayofweek=$1; at=$2; whentime=$3;
whenday=`toint "$whendayofweek"`
whendayofweek=`tolower "$whendayofweek"`
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
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
else
- info ">>>> starting action $file (because
it i
s $w)"
+ info ">>>> starting action $file (because
current time matche
s $w)"
run="yes"
fi
done
run="yes"
fi
done