From fd854570cfb5b1ec3395e22f7dbb255c7649f2e2 Mon Sep 17 00:00:00 2001 From: Varac Date: Mon, 12 Sep 2022 09:16:24 +0200 Subject: [PATCH] Fix exclude-caches directive It's called --exclude-caches, not --exclude-cache see https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files --- README.md | 2 +- templates/restic_script_Linux.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 %}