add example.rsync and updated rsync handler from rhatto
authorMicah Anderson <micah@riseup.net>
Tue, 6 Nov 2007 21:20:36 +0000 (21:20 +0000)
committerMicah Anderson <micah@riseup.net>
Tue, 6 Nov 2007 21:20:36 +0000 (21:20 +0000)
ChangeLog
examples/Makefile.am
handlers/rsync.in

index 0dacc9442e97f464633f1c8029c3ed3270d2e159..7682a29fde3fe11149e1179ffad4c9fd60152d50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,6 +45,7 @@ version 0.9.5 -- unreleased
         . Renamed handler to 'rsync', replaces outdated rub handler
         . updated examples/Makefile.am and handlers/Makefile.am to include
           rsnap/rsync (Closes: #440554)
         . Renamed handler to 'rsync', replaces outdated rub handler
         . updated examples/Makefile.am and handlers/Makefile.am to include
           rsnap/rsync (Closes: #440554)
+        . Added example.rsync configuration file
        sys:
         . Fixed typo breaking things for VServers.
         . Fix bug when vrootdir is on its own partition (Closes: #395928)
        sys:
         . Fixed typo breaking things for VServers.
         . Fix bug when vrootdir is on its own partition (Closes: #395928)
index 5dfb7c331640c243be754b280edc0b5c7177540a..8669e86de1e0511684ad8d6b6f814320025d58c3 100644 (file)
@@ -1,6 +1,6 @@
 
 EXAMPLES = example.dup example.ldap example.makecd example.mysql \
 
 EXAMPLES = example.dup example.ldap example.makecd example.mysql \
-               example.pgsql example.rdiff example.sh \
+               example.pgsql example.rdiff example.sh example.rsync \
                example.svn example.sys example.trac
 
 EXTRA_DIST = $(EXAMPLES)
                example.svn example.sys example.trac
 
 EXTRA_DIST = $(EXAMPLES)
index d3d704c1a4a08609b665286574b077819514fda9..bb0343614209538b1bb099ebdcf1a6beccda7a7d 100644 (file)
@@ -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
 #   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
 #
 #   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)
 #   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
 #
 #   [services]
 #   initscripts = absolute path where scripts are located
@@ -63,7 +64,7 @@ getconf mv mv
 getconf fsck fsck
 
 setsection general
 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
 getconf partition
 getconf fscheck
 getconf read_only
@@ -100,7 +101,7 @@ getconf service
 
 function rotate {
 
 
 function rotate {
 
-  if [[ "$2" -lt 4 ]]; then
+  if [[ "$2" < 4 ]]; then
     error "Rotate: minimum of 4 rotations"
     exit 1
   fi
     error "Rotate: minimum of 4 rotations"
     exit 1
   fi