disable cache for local repos

This commit is contained in:
nd 2021-08-18 12:49:15 +01:00
parent eed938b1b1
commit f0a5477790
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
5 changed files with 6 additions and 2 deletions

View file

@ -5,7 +5,8 @@ set -euo pipefail
# restic backend
source /etc/backup-client/restic.env
restic check --read-data --cleanup-cache
restic check --read-data \
--cleanup-cache{% if not backup_restic_cache %} --no-cache{% endif %}
{% 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 \
--cleanup-cache {% if not backup_restic_cache %} --no-cache{% endif %} \
--verbose \
--prune \
--group-by "host,paths,tags" \

View file

@ -8,6 +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 %} \
--verbose \
--exclude-caches \
--one-file-system \

View file

@ -122,6 +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 %} \
--verbose \
--host "$DOMAIN" \
--exclude-file "/etc/backup-client/vms/$DOMAIN/exclude_files" \