diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-06-04 09:51:17 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-06-04 09:51:17 -0300 |
commit | 9c4c327513c485d89421a8a626bf4f5c6ec89ec7 (patch) | |
tree | 8c99ba57a7f9d210681d65a896cf37e0a4a8723e | |
parent | 9af6c3a45a654d7ff434689310a05bcc6d37d03b (diff) | |
download | puppet-backup-9c4c327513c485d89421a8a626bf4f5c6ec89ec7.tar.gz puppet-backup-9c4c327513c485d89421a8a626bf4f5c6ec89ec7.tar.bz2 |
Excluding /var/cache from backups
-rw-r--r-- | manifests/init.pp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index aa12016..d2fda8c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -21,12 +21,12 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # backup folder -$backupdir = "/var/backups" -$backup_remote = "$backupdir/remote" +$backupdir = "/var/backups" +$backupdir_remote = "$backupdir/remote" # for data that's going to be encrypted and signed $backup_include_unencrypted = [ "/etc", "/var", "/home", ] -$backup_exclude_unencrypted = [ "$backup_remote", "/var/vservers", "$backupdir/duplicity" ] +$backup_exclude_unencrypted = [ "$backupdir_remote", "$backupdir/duplicity", "/var/cache", "/var/vservers" ] # for data that were previously encrypted and signed $backup_include_encrypted = [ "$backupdir/duplicity", ] @@ -52,7 +52,7 @@ class backup { force => true, } - file { "$backup_remote": + file { "$backupdir_remote": ensure => directory, owner => root, group => root, |