Merge pull request #3819 from lbausch/restore-validate-patterns

restore: validate include/exclude patterns
This commit is contained in:
MichaelEischer
2022-07-12 20:58:41 +02:00
committed by GitHub
4 changed files with 75 additions and 0 deletions

View File

@@ -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