From b609523582999b47d0655d2cf4cd8f53b3f9b2ad Mon Sep 17 00:00:00 2001 From: Lorenz Bausch Date: Sat, 9 Jul 2022 22:24:56 +0200 Subject: [PATCH] Add changelog entry --- changelog/unreleased/pull-3819 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 changelog/unreleased/pull-3819 diff --git a/changelog/unreleased/pull-3819 b/changelog/unreleased/pull-3819 new file mode 100644 index 000000000..7bbce5005 --- /dev/null +++ b/changelog/unreleased/pull-3819 @@ -0,0 +1,10 @@ +Enhancement: Validate include/exclude patterns before restoring + +Patterns provided to `restic restore` via `--exclude`, `--iexclude`, +`--include` and `--iinclude` weren't validated before running the restore. +Invalid patterns would result in error messages being printed repeatedly +and possibly unwanted files being restored. +restic now validates all patterns before running the restore and aborts with +a fatal error if an invalid pattern is detected. + +https://github.com/restic/restic/pull/3819