diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-09-16 20:16:46 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-09-16 20:16:46 +0000 |
commit | 764feeb52d90fc0a0419ad19ba8e16d01f724b14 (patch) | |
tree | ab1151247cdbb58f86d97c7a1c2399a8b797458f /modules/rsnapshot/templates | |
parent | 2a0a5d2e4c8c53c0b4de6873a4ef3daba596cd55 (diff) | |
download | puppet-764feeb52d90fc0a0419ad19ba8e16d01f724b14.tar puppet-764feeb52d90fc0a0419ad19ba8e16d01f724b14.tar.gz puppet-764feeb52d90fc0a0419ad19ba8e16d01f724b14.tar.bz2 puppet-764feeb52d90fc0a0419ad19ba8e16d01f724b14.tar.xz puppet-764feeb52d90fc0a0419ad19ba8e16d01f724b14.zip |
add backup define
Diffstat (limited to 'modules/rsnapshot/templates')
-rw-r--r-- | modules/rsnapshot/templates/rsnapshot.conf | 48 |
1 files changed, 20 insertions, 28 deletions
diff --git a/modules/rsnapshot/templates/rsnapshot.conf b/modules/rsnapshot/templates/rsnapshot.conf index 9a6232c5..37502aa8 100644 --- a/modules/rsnapshot/templates/rsnapshot.conf +++ b/modules/rsnapshot/templates/rsnapshot.conf @@ -86,10 +86,18 @@ cmd_rsnapshot_diff /usr/bin/rsnapshot-diff # i.e. hourly, daily, weekly, etc. # ######################################### -interval hourly 6 -interval daily 7 -interval weekly 4 -#interval monthly 3 +<%- if @hourly_interval != '0' -%> +interval hourly <%= @hourly_interval %> +<%- end -%> +<%- if @daily_interval != '0' -%> +interval daily <%= @daily_interval %> +<%- end -%> +<%- if @weekly_interval != '0' -%> +interval weekly <%= @weekly_interval %> +<%- end -%> +<%- if @monthly_interval != '0' -%> +interval monthly <%= @monthly_interval %> +<%- end -%> ############################################ # GLOBAL OPTIONS # @@ -141,7 +149,7 @@ lockfile /var/run/rsnapshot.pid # backup point. This essentially passes the -x option to rsync. # The default is 0 (off). # -#one_fs 0 +one_fs <%= @one_fs %> # The include and exclude parameters, if enabled, simply get passed directly # to rsync. If you have multiple include/exclude patterns, put each one on a @@ -192,27 +200,11 @@ link_dest 1 ### BACKUP POINTS / SCRIPTS ### ############################### -# LOCALHOST -backup /home/ localhost/ -backup /etc/ localhost/ -backup /usr/ localhost/ -#backup /var/log/rsnapshot localhost/ -#backup /etc/passwd localhost/ -#backup /home/foo/My Documents/ localhost/ -#backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog -#backup_script /usr/bin/backup_pgsql.sh localhost/postgres/ - -# EXAMPLE.COM -#backup_script /bin/date "+ backup of example.com started at %c" unused1 -#backup root@example.com:/home/ example.com/ +rsync_long_args=--bwlimit=16,exclude=core -#backup root@example.com:/etc/ example.com/ exclude=mtab,exclude=core -#backup_script ssh root@example.com "mysqldump -A > /var/db/dump/mysql.sql" unused2 -#backup root@example.com:/var/db/dump/ example.com/ -#backup_script /bin/date "+ backup of example.com ended at %c" unused9 - -# CVS.SOURCEFORGE.NET -#backup_script /usr/bin/backup_rsnapshot_cvsroot.sh rsnapshot.cvs.sourceforge.net/ - -# RSYNC.SAMBA.ORG -#backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/rsyncftp/ +<%- for b in @backup -%> +backup <%= b %> +<%- end -%> + +<%- for bs in @backup_script -%> +backup_script <%= bs %> +<%- end -%> |