Commit 74ce68bc authored by LeLutin's avatar LeLutin

Merge branch 'duplicity_patches' into 'master'

Add features for duplicity type backup

Add support for increments,keepincroffulls,desturl

Include proper backupninja::client:: class (as does rsync)

See merge request !3
parents d0da8bea 568b1d68
......@@ -71,12 +71,15 @@ define backupninja::duplicity( $order = 90,
$vsinclude = false,
# [dest]
$incremental = "yes",
$increments = false,
$keep = false,
$keepincroffulls = false,
$bandwidthlimit = false,
$sshoptions = false,
$destdir = false,
$desthost = false,
$destuser = false,
$desturl = false,
# configs to backupninja client
$backupkeystore = false,
$backupkeystorefspath = '',
......@@ -94,7 +97,7 @@ define backupninja::duplicity( $order = 90,
$installkey = true ) {
# the client with configs for this machine
include backupninja::client::defaults
include backupninja::client::duplicity
case $desthost { false: { err("need to define a destination host for remote backups!") } }
case $destdir { false: { err("need to define a destination directory for remote backups!") } }
......
......@@ -35,9 +35,12 @@
[dest]
<%= 'incremental = ' + incremental if incremental %>
<%= 'increments = ' + increments if increments %>
<%= 'keep = ' + keep if keep %>
<%= 'keepincroffulls = ' + keepincroffulls if keepincroffulls %>
<%= 'bandwidthlimit = ' + bandwidthlimit if bandwidthlimit %>
<%= 'sshoptions = ' + sshoptions if sshoptions %>
<%= 'destdir = ' + destdir if destdir %>
<%= 'desthost = ' + desthost if desthost %>
<%= 'destuser = ' + destuser if destuser %>
<%= 'desturl = ' + desturl if desturl %>
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