diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-08-18 15:53:26 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-08-18 15:53:26 -0300 |
commit | 368661f49eb14dd8e0df157f071ae0cb08fbf8b3 (patch) | |
tree | 1f337b2adbb9e98aff59b90ebabf3675cf55ca1f /manifests | |
parent | b93dc21e850e1914a7377378604acf9ca8a14713 (diff) | |
download | puppet-backup-368661f49eb14dd8e0df157f071ae0cb08fbf8b3.tar.gz puppet-backup-368661f49eb14dd8e0df157f071ae0cb08fbf8b3.tar.bz2 |
Adding rsync-check
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 20 |
1 files changed, 20 insertions, 0 deletions
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, |