Skip to content

Commit

Permalink
Merge pull request #79 from varac/exclude_caches
Browse files Browse the repository at this point in the history
Fix exclude-caches directive
  • Loading branch information
DO1JLR authored Sep 12, 2022
2 parents aa70e1d + fd85457 commit 6f5a8fc
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 6f5a8fc

Please sign in to comment.