aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-29 17:06:26 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-29 17:06:26 -0200
commit6ed1f8dfe6b16f148dde641482709958bc393815 (patch)
tree4bd792d6eb8a34a41933a26dbeb658e3ba629659
parent54bc1da418f7dd32fce1343685579a5ef17d75ef (diff)
downloadpuppet-backupninja-6ed1f8dfe6b16f148dde641482709958bc393815.tar.gz
puppet-backupninja-6ed1f8dfe6b16f148dde641482709958bc393815.tar.bz2
Adding $subfolder parameter at backupninja::rdiff
New $subfolder defaulting to rdiff-backup allow configuration of which inner folder from $home rdiff backup should keep backups.
-rw-r--r--manifests/rdiff.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index 38a975d..562d652 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -25,7 +25,8 @@ define backupninja::rdiff(
"/home", "/usr/local/*bin", "/var/lib/dpkg/status*" ],
$vsinclude = false, $keep = 30, $sshoptions = false, $options = '--force', $ssh_dir_manage = true,
$ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $key = false,
- $backuptag = false, $home = false, $backupkeytype = "rsa", $backupkeystore = false, $extras = false)
+ $backuptag = false, $home = false, $backupkeytype = "rsa", $backupkeystore = false, $extras = false,
+ $subfolder = 'rdiff-backup')
{
include backupninja::client::rdiff_backup
@@ -41,7 +42,7 @@ define backupninja::rdiff(
false => "/home/${user}-${name}",
default => $home,
}
- $directory = "$real_home/rdiff-backup/"
+ $directory = "${real_home}/${subfolder}/"
backupninja::server::sandbox
{