aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-11-06 21:20:36 +0000
committerMicah Anderson <micah@riseup.net>2007-11-06 21:20:36 +0000
commitea79f006da7c02794a36c1ad7e6ba29b2c4b5d12 (patch)
treed389ce2b593aa4583397b966ba1b3ea65e12afe4 /handlers
parent421c1bb7695c935432b9abf66748d3e6baf1cdba (diff)
downloadbackupninja-ea79f006da7c02794a36c1ad7e6ba29b2c4b5d12.tar.gz
backupninja-ea79f006da7c02794a36c1ad7e6ba29b2c4b5d12.tar.bz2
add example.rsync and updated rsync handler from rhatto
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rsync.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index d3d704c..bb03436 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -19,6 +19,7 @@
# backupdir = folder relative do $mountpoint where the backup should be stored
# days = number of backup increments (min = 5)
# lockfile = lockfile to be kept during backup execution
+# nicelevel = rsync command nice level
# enable_mv_timestamp_bug = set to "yes" if your system isnt handling timestamps correctly
# tmp = temp folder
#
@@ -34,7 +35,7 @@
# numericids = when set to 1, use numeric ids instead of user/group mappings on rsync
# compress = if set to 1, compress data on rsync (remote source only)
# bandwidthlimit = set a badnwidth limit in kbps (remote source only)
-# remote_rsync = remove rsync program (remote source only)
+# remote_rsync = remote rsync program (remote source only)
#
# [services]
# initscripts = absolute path where scripts are located
@@ -63,7 +64,7 @@ getconf mv mv
getconf fsck fsck
setsection general
-getconf log /var/log/backupninja-rsync.log
+getconf log /var/log/backup/rsync.log
getconf partition
getconf fscheck
getconf read_only
@@ -100,7 +101,7 @@ getconf service
function rotate {
- if [[ "$2" -lt 4 ]]; then
+ if [[ "$2" < 4 ]]; then
error "Rotate: minimum of 4 rotations"
exit 1
fi