Fix exclude-caches directive

It's called --exclude-caches, not --exclude-cache
see https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files
This commit is contained in:
Varac 2022-09-12 09:16:24 +02:00
parent aa70e1d29c
commit fd854570cf
No known key found for this signature in database
GPG key ID: 5465E77E7876ED04
2 changed files with 3 additions and 3 deletions

View file

@ -183,7 +183,7 @@ the `exclude` key on a backup allows you to specify multiple files to exclude or
files to look for filenames to be excluded. You can specify the following keys:
```yaml
exclude:
exclude_cache: true
exclude_caches: true
exclude:
- /path/to/file
iexclude:

View file

@ -109,8 +109,8 @@ set -uxo pipefail
{%- endmacro %}
{% macro exclude(exclude) %}
{% if exclude.exclude_cache is defined and exclude.exclude_cache == true %}
--exclude-cache \
{% if exclude.exclude_caches is defined and exclude.exclude_caches == true %}
--exclude-caches \
{% endif %}
{% if exclude.exclude is defined %}
{% for path in exclude.exclude %}