aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2005-04-17 17:14:33 +0000
committerElijah Saxon <elijah@riseup.net>2005-04-17 17:14:33 +0000
commit7691261c2d059ec04b8448410febde6ef214418d (patch)
tree07170e894bca871db3cfe09d6b01e0c6b9366ef5
parentc7e96acc455c3b5c74f97e812072e1a55664adce (diff)
downloadbackupninja-7691261c2d059ec04b8448410febde6ef214418d.tar.gz
backupninja-7691261c2d059ec04b8448410febde6ef214418d.tar.bz2
added 'daily', hours don't need 0 prefix.
-rwxr-xr-xbackupninja4
-rw-r--r--changelog6
2 files changed, 5 insertions, 5 deletions
diff --git a/backupninja b/backupninja
index 3943724..a59d400 100755
--- a/backupninja
+++ b/backupninja
@@ -199,9 +199,9 @@ function isnow() {
whendayofweek=$1; at=$2; whentime=$3;
whenday=`toint "$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
fi
diff --git a/changelog b/changelog
index 520b7b6..bf891cd 100644
--- a/changelog
+++ b/changelog
@@ -3,10 +3,10 @@ version 0.5 -- April 12 2005
rdiff handler supports local dest
logfile is created if it doesn't exist
added "when = hourly"
-xxxx fixed bug with 'when' option
- added 'nice' to rdiff handler
+ added optional 'nicelevel' to rdiff handler
fixed bug where actions were not run in numeric order.
-
+ improved 'when' parsing.
+
version 0.4.4 -- March 18 2005
results of handlers are now read line by line.
changes to rdiff handler: added "options", and "keep" is