diff --git a/README.md b/README.md index f608efb..c818fa0 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/templates/restic_script_Linux.j2 b/templates/restic_script_Linux.j2 index e699a8b..3026bd2 100644 --- a/templates/restic_script_Linux.j2 +++ b/templates/restic_script_Linux.j2 @@ -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 %}