diff options
author | dystopic <dystopic@espiv.net> | 2015-04-05 12:08:39 +0300 |
---|---|---|
committer | dystopic <dystopic@espiv.net> | 2015-04-05 12:08:39 +0300 |
commit | 568b1d68d9bc94791e37aff3a6658643c6590adb (patch) | |
tree | f5ef3fb69be733d55da16658932a17c7d665f92d | |
parent | a9e4f0b5a75796c56c5cfedc8c0bffc0c386e3bc (diff) | |
download | puppet-backupninja-568b1d68d9bc94791e37aff3a6658643c6590adb.tar.gz puppet-backupninja-568b1d68d9bc94791e37aff3a6658643c6590adb.tar.bz2 |
Add features for duplicity type backup
Add support for increments,keepincroffulls,desturl
Include proper backupninja::client:: class (as does rsync)
-rw-r--r-- | manifests/dup.pp | 5 | ||||
-rw-r--r-- | templates/dup.conf.erb | 3 |
2 files changed, 7 insertions, 1 deletions
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 %> |