Skip to content

Commit

Permalink
Fix exclude-caches directive
Browse files Browse the repository at this point in the history
It's called --exclude-caches, not --exclude-cache
see https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files
  • Loading branch information
varac committed Sep 12, 2022
1 parent aa70e1d commit fd85457
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions templates/restic_script_Linux.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit fd85457

Please sign in to comment.