From 568b1d68d9bc94791e37aff3a6658643c6590adb Mon Sep 17 00:00:00 2001 From: dystopic Date: Sun, 5 Apr 2015 12:08:39 +0300 Subject: Add features for duplicity type backup Add support for increments,keepincroffulls,desturl Include proper backupninja::client:: class (as does rsync) --- manifests/dup.pp | 5 ++++- templates/dup.conf.erb | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/manifests/dup.pp b/manifests/dup.pp index 5ffce29..99b64f8 100644 --- a/manifests/dup.pp +++ b/manifests/dup.pp @@ -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!") } } diff --git a/templates/dup.conf.erb b/templates/dup.conf.erb index 2a61443..4f15e78 100644 --- a/templates/dup.conf.erb +++ b/templates/dup.conf.erb @@ -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 %> -- cgit v1.2.3