summaryrefslogtreecommitdiff
path: root/roles/rsnapshot.notyet/templates
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2017-12-03 22:47:13 -0800
committerJakob Odersky <jakob@odersky.com>2017-12-03 22:47:13 -0800
commitdf6be44d67e29d73b0f226985c2c7b6ec989c224 (patch)
tree590198484d5322042c2d0ef38bc4eeb1c71412ae /roles/rsnapshot.notyet/templates
downloadmetamorphic-master.tar.gz
metamorphic-master.tar.bz2
metamorphic-master.zip
Initial commitHEADmaster
Diffstat (limited to 'roles/rsnapshot.notyet/templates')
-rw-r--r--roles/rsnapshot.notyet/templates/cron.j25
-rw-r--r--roles/rsnapshot.notyet/templates/linux.conf.j231
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