diff options
Diffstat (limited to 'roles/rsnapshot.notyet/templates')
-rw-r--r-- | roles/rsnapshot.notyet/templates/cron.j2 | 5 | ||||
-rw-r--r-- | roles/rsnapshot.notyet/templates/linux.conf.j2 | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/roles/rsnapshot.notyet/templates/cron.j2 b/roles/rsnapshot.notyet/templates/cron.j2 new file mode 100644 index 0000000..2cdf278 --- /dev/null +++ b/roles/rsnapshot.notyet/templates/cron.j2 @@ -0,0 +1,5 @@ +# m h dom mon dow command +00 * * * * rsnapshot -c /home/rsnapshot/$HOST/rsnapshot.conf sync && rsnapshot -c /home/rsnapshot/$HOST/rsnapshot.conf hourly +00 04 * * * rsnapshot -c /home/rsnapshot/$HOST/rsnapshot.conf daily +00 02 * * 0 rsnapshot -c /home/rsnapshot/$HOST/rsnapshot.conf weekly +00 00 1 * * rsnapshot -c /home/rsnapshot/$HOST/rsnapshot.conf monthly
\ No newline at end of file diff --git a/roles/rsnapshot.notyet/templates/linux.conf.j2 b/roles/rsnapshot.notyet/templates/linux.conf.j2 new file mode 100644 index 0000000..26dffb9 --- /dev/null +++ b/roles/rsnapshot.notyet/templates/linux.conf.j2 @@ -0,0 +1,31 @@ +# This file requires tabs between elements + +# Include global rsnapshot configuration +include_conf /etc/rsnapshot.conf + +logfile /var/log/rsnapshot/{{host}}.log +lockfile /var/run/rsnapshot/{{host}}.pid + +snapshot_root /mnt/backup/rsnapshot/{{host}}/ + +include /usr/local/ +exclude /bin/ +exclude /boot/ +exclude /dev/ +exclude /lib/ +exclude /lib64/ +exclude /lost+found/ +exclude /proc/ +exclude /run/ +exclude /sbin/ +exclude /sys/ +exclude /tmp/ +exclude /usr/ +exclude /var/backups/ +exclude /var/cache/ +exclude /var/lock/ +exclude /var/run/ +exclude /var/spool/ +exclude /var/tmp/ + +backup backup@{{host}}:/ ./
\ No newline at end of file |