aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/backups/manifests/init.pp
blob: 1638286d7d8a2ecce43ba261b347b9483539a98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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' ],
	}

	rsnapshot::backup{ 'krampouezh':
	    snapshot_root => "${backups_dir}/krampouezh",
	    backup => [ 'root@krampouezh.mageia.org:/home/irc_bots/meetings meetbot' ],
	}
    }
}