1 |
class backups { |
2 |
class server { |
3 |
|
4 |
$backups_dir = '/backups' |
5 |
$confdir = "${backups_dir}/conf" |
6 |
|
7 |
class { 'rsnapshot::base': |
8 |
confdir => $confdir, |
9 |
} |
10 |
|
11 |
file { $backups_dir: |
12 |
ensure => directory, |
13 |
owner => root, |
14 |
group => root, |
15 |
mode => 700, |
16 |
} |
17 |
|
18 |
rsnapshot::backup{ 'alamut': |
19 |
snapshot_root => "${backups_dir}/alamut", |
20 |
backup => [ 'root@alamut.mageia.org:/srv/wiki wiki' ], |
21 |
} |
22 |
|
23 |
rsnapshot::backup{ 'krampouezh': |
24 |
snapshot_root => "${backups_dir}/krampouezh", |
25 |
backup => [ 'root@krampouezh.mageia.org:/home/irc_bots/meetings meetbot' ], |
26 |
} |
27 |
} |
28 |
} |