add support for custom restic flags

This commit is contained in:
nd 2021-12-02 22:54:14 +01:00
parent 9ddce74914
commit 231c983205
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
6 changed files with 7 additions and 5 deletions

View file

@ -6,7 +6,7 @@ set -euo pipefail
source /etc/backup-client/restic.env
restic check --read-data \
--cleanup-cache{% if not backup_restic_cache %} --no-cache{% endif %}
{{ restic_combined_flags }}
{% endif %}

View file

@ -7,7 +7,7 @@ source /etc/backup-client/retention.env
# restic backend
source /etc/backup-client/restic.env
restic forget \
--cleanup-cache {% if not backup_restic_cache %} --no-cache{% endif %} \
{{ restic_combined_flags }} \
--verbose \
--prune \
--group-by "host,paths,tags" \

View file

@ -8,7 +8,7 @@ test -f "/etc/backup-client/enabled" || { echo "Standalone backup is disabled";
source /etc/backup-client/restic.env
restic backup \
--cleanup-cache {% if not backup_restic_cache %} --no-cache{% endif %} \
{{ restic_combined_flags }} \
--verbose \
--exclude-caches \
--one-file-system \

View file

@ -122,7 +122,7 @@ set -euo pipefail
# restic backend
source /etc/backup-client/restic.env
restic backup \
--cleanup-cache {% if not backup_restic_cache %} --no-cache{% endif %} \
{{ restic_combined_flags }} \
--verbose \
--host "$DOMAIN" \
--exclude-file "/etc/backup-client/vms/$DOMAIN/exclude_files" \