mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-23 11:13:18 +01:00
added 'daily', hours don't need 0 prefix.
This commit is contained in:
parent
c7e96acc45
commit
7691261c2d
@ -199,9 +199,9 @@ function isnow() {
|
|||||||
whendayofweek=$1; at=$2; whentime=$3;
|
whendayofweek=$1; at=$2; whentime=$3;
|
||||||
whenday=`toint "$whendayofweek"`
|
whenday=`toint "$whendayofweek"`
|
||||||
whendayofweek=`tolower "$whendayofweek"`
|
whendayofweek=`tolower "$whendayofweek"`
|
||||||
whentime=`echo "$whentime" | sed 's/:[0-9][0-9]$//'`
|
whentime=`echo "$whentime" | sed 's/:[0-9][0-9]$//' | sed -r 's/^([0-9])$/0\1/'`
|
||||||
|
|
||||||
if [ "$whendayofweek" == "everyday" ]; then
|
if [ "$whendayofweek" == "everyday" -o "$whendayofweek" == "daily" ]; then
|
||||||
whendayofweek=$nowdayofweek
|
whendayofweek=$nowdayofweek
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@ version 0.5 -- April 12 2005
|
|||||||
rdiff handler supports local dest
|
rdiff handler supports local dest
|
||||||
logfile is created if it doesn't exist
|
logfile is created if it doesn't exist
|
||||||
added "when = hourly"
|
added "when = hourly"
|
||||||
xxxx fixed bug with 'when' option
|
added optional 'nicelevel' to rdiff handler
|
||||||
added 'nice' to rdiff handler
|
|
||||||
fixed bug where actions were not run in numeric order.
|
fixed bug where actions were not run in numeric order.
|
||||||
|
improved 'when' parsing.
|
||||||
|
|
||||||
version 0.4.4 -- March 18 2005
|
version 0.4.4 -- March 18 2005
|
||||||
results of handlers are now read line by line.
|
results of handlers are now read line by line.
|
||||||
changes to rdiff handler: added "options", and "keep" is
|
changes to rdiff handler: added "options", and "keep" is
|
||||||
|
Loading…
Reference in New Issue
Block a user