Adam Monsen - spec file updates
Matthew Palmer <mpalmer@debian.org> -- halt loglevel feature
dan@garthwaite.org -- reportspace bugfix
+Tuomas Jormola <tj@solitudo.net> -- "when = manual" option
backupninja changes
. fix bug in reportspace, thanks Dan Garthwaite
. do not assume English locale when using date (Closes: #465837)
+ . add 'when = manual' option, that can be used in the global config
+ file or in a given backup action file. Thanks Tuomas Jormola for the
+ preliminary patch (Closes: #511299)
handler changes
maildir:
. fix location of deleted_on file
.SH SCHEDULING
-By default, each configuration file is processed everyday at 01:00 (1 AM). This can be changed by specifying the 'when' option in a backup action's config file or in the global configuration file.
+By default, each configuration file is processed everyday at 01:00 (1 AM). This can be changed by specifying the 'when' option in a backup action's config file or in the global configuration file. Special value 'manual' will disable scheduling for the backup action. It is possible to run the backup action manually by invoking \fBninjahelper(1)\fP with --run command line argument.
For example:
when = sundays at 02:00
when = everyday at 01
when = Tuesday at 05:00
when = hourly
+ when = manual
These values for "when" are invalid:
when = tuesday at 2am
function isnow() {
local when="$1"
set -- $when
+
+ [ "$when" == "manual" ] && return 0
+
whendayofweek=$1; at=$2; whentime=$3;
whenday=`toint "$whendayofweek"`
whendayofweek=`tolower "$whendayofweek"`
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