From 65d1aec53e3b48ddb3d71216741b8eb96cda55b8 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 20 Dec 2023 01:20:32 +0100 Subject: [PATCH] Add restic_compression and restic_build_command --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 64e8e99..f23459c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,7 +13,12 @@ export RESTIC_REPOSITORY="s3:{{ restic_aws_endpoint }}/{{ restic_aws_bucket_name }}" export RESTIC_PASSWORD={{ restic_password | to_json }} + {% if restic_compression is defined %}export RESTIC_COMPRESSION={{ restic_compression }}{% endif %} + + {% if restic_build_command is defined %} + {{ restic_build_command }} + {% endif %} restic backup {{ restic_directory }} dest: "/etc/periodic/daily/backup_{{ ansible_play_name | replace(' ', '_') }}" mode: 0755