Commit 6ed1f8df authored by Silvio Rhatto's avatar Silvio Rhatto

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.
parent 54bc1da4
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment