diff --git a/templates/config.erb b/templates/config.erb index ca350ca..4d3f323 100644 --- a/templates/config.erb +++ b/templates/config.erb @@ -1,33 +1,34 @@ +<% require 'shellwords' -%> # Configuration for backup <%= @title %> # Managed by puppet. Your modifications will be overwritten # Name of the backup file BACKUP_TITLE=<%= @title.shellescape %> # Path where backups are stored BACKUP_STORAGE=<%= @backup_storage.shellescape %> # Base path of the backup BACKUP_BASE=<%= @backup_base.shellescape %> # Includes BACKUP_INCLUDE=<%= @includes_path.shellescape %> # Excludes BACKUP_EXCLUDE=<%= @excludes_path.shellescape %> # Lock file BACKUP_LOCK=<%= @lock_path.shellescape %> # Done file BACKUP_DONE=<%= @flag_path.shellescape %> # Additional options to dar BACKUP_OPTIONS=( <% @backup_options.each do |option| -%> <%= option.shellescape %> <% end %> ) # Number of backups to keep BACKUP_KEEP="<%= @keep_backups %>"