Search
j0ke.net Open Build Service
>
Projects
>
server:backup
>
rsnapshot
> rsnapshot.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File rsnapshot.patch of Package rsnapshot (Revision 8)
Currently displaying revision
8
,
show latest
--- rsnapshot.conf.default.in.orig 2011-11-07 11:32:58.521039582 +0100 +++ rsnapshot.conf.default.in 2011-11-07 12:05:42.512262092 +0100 @@ -41,7 +41,7 @@ # # See the README file or the man page for more details. # -#@CMD_CP@ +@CMD_CP@ # uncomment this to use the rm program instead of the built-in perl routine. # @@ -64,11 +64,11 @@ # If you have an older version of "du", you may also want to check the # "du_args" parameter below. # -#@CMD_DU@ +@CMD_DU@ # Uncomment this to specify the path to rsnapshot-diff. # -#cmd_rsnapshot_diff /usr/local/bin/rsnapshot-diff +cmd_rsnapshot_diff /usr/bin/rsnapshot-diff # Specify the path to a script (and any optional arguments) to run right # before rsnapshot syncs files @@ -80,6 +80,12 @@ # #cmd_postexec /path/to/postexec/script +@CMD_LVCREATE@ +@CMD_LVREMOVE@ +@CMD_MOUNT@ +@CMD_UMOUNT@ +@CMD_KPARTX@ + ######################################### # BACKUP INTERVALS # # Must be unique and in ascending order # @@ -113,7 +119,7 @@ # If you enable this, data will be written to the file you specify. The # amount of data written is controlled by the "loglevel" parameter. # -#logfile /var/log/rsnapshot +logfile /var/log/rsnapshot # If enabled, rsnapshot will write a lockfile to prevent two instances # from running simultaneously (and messing up the snapshot_root). @@ -181,6 +187,11 @@ # #use_lazy_deletes 0 +linux_lvm_snapshotsize 1G +linux_lvm_snapshotname rsnapshot +linux_lvm_vgpath /dev +linux_lvm_mountpath /var/backups/lvm-snapshot + # Number of rsync re-tries. If you experience any network problems or # network card issues that tend to cause ssh to crap-out with # "Corrupted MAC on input" errors, for example, set this to a non-zero @@ -216,3 +227,14 @@ # RSYNC.SAMBA.ORG #backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/rsyncftp/ +# lvm examples +#backup lvm-kpartx://vg0/server1/1/ server1/ rsync_long_args=--no-D --delete --numeric-ids --delete-excluded, rsync_short_args=-aAHq,exclude=**/var/spool/squid/* +#backup lvm-kpartx://vg0/server1/2/ server1/var/log/ +# +#backup lvm://vg0/root_telexen/ root/ one_fs=1 +#backup lvm://vg0/varlog_telexen/ root/var/log/ +#backup /boot/ root/ +##backup lvm://vg0/ubimage_dev/ ubimage_dev/ rsync_short_args=-aAHq, one_fs=1, acl_mount=1 +# +#backup lvm-kpartx://vg0/vpsgateway/1/ vpsgateway/ rsync_short_args=-aAHq, one_fs=1, acl_mount=1 +