aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-06 11:01:17 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-06 11:01:17 -0200
commit55dfc08aaa67f87cbb5401f0e67a51dca1b413c4 (patch)
tree8bccef3201591636eed4669233b9faf550fc97dd /manifests/init.pp
parent24b2ddc15afd304bee4431226c04050b81001e23 (diff)
downloadpuppet-backup-55dfc08aaa67f87cbb5401f0e67a51dca1b413c4.tar.gz
puppet-backup-55dfc08aaa67f87cbb5401f0e67a51dca1b413c4.tar.bz2
Adding remove_all_but_n_full for dup action; excluding /root/.cache from backups
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6bd8133..f925bd8 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -26,7 +26,7 @@ $backupdir_remote = "$backupdir/remote"
# for data that's going to be encrypted and signed
$backup_include_unencrypted = [ "/etc", "/var", "/home", ]
-$backup_exclude_unencrypted = [ "$backupdir_remote", "$backupdir/duplicity", "/var/cache", "/var/log", "/var/vservers", "/var/chroot" ]
+$backup_exclude_unencrypted = [ "$backupdir_remote", "$backupdir/duplicity", "/var/cache", "/var/log", "/var/vservers", "/var/chroot", "/root/.cache" ]
# for data that were previously encrypted and signed
$backup_include_encrypted = [ "$backupdir/duplicity", ]
@@ -190,6 +190,7 @@ class backup {
$ensure = present,
$full_if_older_than = "1M",
$remove_older_than = "45D",
+ $remove_all_but_n_full = "1",
$periodic_check = absent,
$directory = "${backupdir}/duplicity") {