aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp22
1 files changed, 21 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6e554d1..83489f2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -50,6 +50,26 @@ class backup {
ensure => absent,
}
+ # rdiff-check script
+ file { "/usr/local/sbin/rdiff-check":
+ content => template('backup/rdiff-check.sh.erb'),
+ owner => root,
+ groupe => root,
+ mode => 0755,
+ ensure => present,
+ }
+
+ # check rdiff-backups once a week
+ cron { "rdiff_check":
+ command => "/usr/local/sbin/rdiff-check",
+ user => root,
+ hour => "0",
+ minute => "0",
+ weekday => "0",
+ ensure => $periodic_check,
+ require => File['/usr/local/sbin/rdiff-check'],
+ }
+
# default backupninja::rdiff configuration
define rdiff($port = '22', $ensure = present, $installkey = true) {
backupninja::rdiff { "rdiff-$title.$domain":
@@ -104,7 +124,7 @@ class backup {
require => File["${backupninja::client::defaults::configdir}"],
}
- # check backups once a week
+ # check duplicity backups once a week
cron { "duplicity_check--$title.$domain":
command => "/bin/bash ${backupninja::client::defaults::configdir}/${order}_duplicity-${title}.sh --check",
user => root,