More configurable options for duplicity
diff --git a/backupninja/files/dup.conf b/backupninja/files/dup.conf
index dbc633d..05ee5a0 100644
--- a/backupninja/files/dup.conf
+++ b/backupninja/files/dup.conf
@@ -18,7 +18,7 @@
## default is 0, but set to something like 19 if you want to lower the priority.
##
## Default:
-# nicelevel = 0
+nicelevel = {{ client.target.nice|default(0) }}
## test the connection? set to no to skip the test if the remote host is alive.
## if 'desturl' is set below, 'testconnect' must be set to 'no' for now.
@@ -148,7 +148,7 @@
## if incremental = no, perform a full backup in order to start a new backup set
##
## Default:
-# incremental = yes
+incremental = {% if source.target.incremental|default(True) %}yes{% else %}no{% endif %}
## how many days of incremental backups before doing a full backup again ;
## default is 30 days (one can also use the time format of duplicity).
@@ -156,14 +156,14 @@
## only perform incremental backups.
##
## Default:
-# increments = 30
+increments = {{ if source.target.increments|default(30) }}
## how many days of data to keep ; default is 60 days.
## (you can also use the time format of duplicity)
## 'keep = yes' means : do not delete old data, the remote host will take care of this
##
## Default:
-# keep = 60
+keep = {{ source.target.keep|default(60) }}
# for how many full backups do we keep their later increments ;
# default is all (keep all increments).
@@ -216,7 +216,7 @@
## bandwidthlimit = 128
##
## Default:
-# bandwidthlimit = 0
+bandwidthlimit = {{ client.target.bandwidthlimit|default(0) }}
## duplicity < 0.6.17
## ------------------