aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/client_create_scripts_each.yml
diff options
context:
space:
mode:
authorColin Wilk <colin@wilk.cx>2026-06-29 20:56:50 +0200
committerColin Wilk <colin@wilk.cx>2026-06-29 20:56:50 +0200
commit66e46df3d2a840bf62ef8084ad171041772db65e (patch)
treea06192c5689ebf70e739941c1608c406b4b7ee2f /tasks/client_create_scripts_each.yml
parenta0432093db76d7bb462f113d4bbeca0a8f376e95 (diff)
downloadansible-role-borgbackup-66e46df3d2a840bf62ef8084ad171041772db65e.tar.gz
ansible-role-borgbackup-66e46df3d2a840bf62ef8084ad171041772db65e.zip
Support custom arguments for borg create
Diffstat (limited to 'tasks/client_create_scripts_each.yml')
-rw-r--r--tasks/client_create_scripts_each.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/client_create_scripts_each.yml b/tasks/client_create_scripts_each.yml
index e185013..6056b81 100644
--- a/tasks/client_create_scripts_each.yml
+++ b/tasks/client_create_scripts_each.yml
@@ -27,7 +27,7 @@
{% if borg_ssh_key_per_repo %}
export BORG_RSH="ssh -i {{ borg_ssh_key_path }}"
{% endif %}
- borg create -C {{ borg_compression }} \
+ borg create -C {{ borg_compression }}{% if borg_create_additional_arguments %} {{ borg_create_additional_arguments }}{% endif %} \
{{ borg_server_user }}@{{ borg_server_host_url }}:{{ borg_server_user_home }}/{{ borg_repo_name }}::{{ borg_backup_name_format }} \
{{ borg_included_dirs | map('quote') | join(' ') }} \
{% for e in (borg_excluded_dirs | map('quote')) %} --exclude {{ e }} {% endfor %}