aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/backups
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/backups')
-rw-r--r--deployment/backups/manifests/init.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/deployment/backups/manifests/init.pp b/deployment/backups/manifests/init.pp
new file mode 100644
index 00000000..439cbfd0
--- /dev/null
+++ b/deployment/backups/manifests/init.pp
@@ -0,0 +1,23 @@
+class backups {
+ class server {
+
+ $backups_dir = '/backups'
+ $confdir = "${backups_dir}/conf"
+
+ class { 'rsnapshot::base':
+ confdir => $confdir,
+ }
+
+ file { $backups_dir:
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => 700,
+ }
+
+ rsnapshot::backup{ 'alamut':
+ snapshot_root => "${backups_dir}/alamut",
+ backup => [ 'root@alamut.mageia.org:/srv/wiki wiki' ],
+ }
+ }
+}