From 368661f49eb14dd8e0df157f071ae0cb08fbf8b3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 18 Aug 2010 15:53:26 -0300 Subject: Adding rsync-check --- manifests/init.pp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 556b0c7..112cdf2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -99,6 +99,26 @@ class backup { require => File['/usr/local/sbin/rdiff-check'], } + # rsync-check script + file { "/usr/local/sbin/rsync-check": + content => template('backup/rsync-check.sh.erb'), + owner => root, + group => root, + mode => 0755, + ensure => present, + } + + # check rsync-backups once a week + cron { "rsync_check": + command => "/usr/local/sbin/rsync-check", + user => root, + hour => "0", + minute => "0", + weekday => "0", + ensure => present, + require => File['/usr/local/sbin/rsync-check'], + } + # we have to keep that until squeeze turns stable file { "/usr/share/backupninja/rsync": ensure => present, -- cgit v1.2.3