Add restic_compression and restic_build_command

This commit is contained in:
nemunaire 2023-12-20 01:20:32 +01:00
parent 42f4a74218
commit 65d1aec53e
1 changed files with 5 additions and 0 deletions

View File

@ -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