aboutsummaryrefslogtreecommitdiff
path: root/templates/duplicity.conf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/duplicity.conf.erb')
-rw-r--r--templates/duplicity.conf.erb18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/duplicity.conf.erb b/templates/duplicity.conf.erb
index 03c9342..6a4f68c 100644
--- a/templates/duplicity.conf.erb
+++ b/templates/duplicity.conf.erb
@@ -7,16 +7,16 @@
#
# TODO: custom log file
-BACKUP_FOLDER="<%= directory %>"
-FULL_IF_OLDER_THAN="<%= full_if_older_than %>"
-REMOVE_OLDER_THAN="<%= remove_older_than %>"
-REMOVE_ALL_BUT_N_FULL="<%= remove_all_but_n_full %>"
-ENCRYPT_KEY="<%= encryptkey %>"
-SIGN_KEY="<%= encryptkey %>"
-<% exclude_unencrypted.each do |del| -%>
+BACKUP_FOLDER="<%= @directory %>"
+FULL_IF_OLDER_THAN="<%= @full_if_older_than %>"
+REMOVE_OLDER_THAN="<%= @remove_older_than %>"
+REMOVE_ALL_BUT_N_FULL="<%= @remove_all_but_n_full %>"
+ENCRYPT_KEY="<%= @encryptkey %>"
+SIGN_KEY="<%= @encryptkey %>"
+<% @exclude_unencrypted.each do |del| -%>
EXCLUDE="$EXCLUDE --exclude <%= del %>"
<% end -%>
-<% include_unencrypted.each do |add| -%>
+<% @include_unencrypted.each do |add| -%>
INCLUDE="$INCLUDE --include <%= add %>"
<% end -%>
@@ -24,7 +24,7 @@ INCLUDE="$INCLUDE --include <%= add %>"
TMP="/var/tmp"
mkdir -p $TMP
-export PASSPHRASE='<%= password %>'
+export PASSPHRASE='<%= @password %>'
mkdir -p $BACKUP_FOLDER
# adds support for checking the existing backup