mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-12-12 04:40:19 +01:00
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:
parent
aa70e1d29c
commit
fd854570cf
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
files to look for filenames to be excluded. You can specify the following keys:
|
||||||
```yaml
|
```yaml
|
||||||
exclude:
|
exclude:
|
||||||
exclude_cache: true
|
exclude_caches: true
|
||||||
exclude:
|
exclude:
|
||||||
- /path/to/file
|
- /path/to/file
|
||||||
iexclude:
|
iexclude:
|
||||||
|
|
|
@ -109,8 +109,8 @@ set -uxo pipefail
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
{% macro exclude(exclude) %}
|
{% macro exclude(exclude) %}
|
||||||
{% if exclude.exclude_cache is defined and exclude.exclude_cache == true %}
|
{% if exclude.exclude_caches is defined and exclude.exclude_caches == true %}
|
||||||
--exclude-cache \
|
--exclude-caches \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if exclude.exclude is defined %}
|
{% if exclude.exclude is defined %}
|
||||||
{% for path in exclude.exclude %}
|
{% for path in exclude.exclude %}
|
||||||
|
|
Loading…
Reference in a new issue