From 54316978cd1fe42bb0ba9251d24595f68c38dc99 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 29 Jun 2024 22:31:19 +0200 Subject: [PATCH] add restore --delete changelog --- changelog/unreleased/issue-2348 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 changelog/unreleased/issue-2348 diff --git a/changelog/unreleased/issue-2348 b/changelog/unreleased/issue-2348 new file mode 100644 index 000000000..a8a0849fe --- /dev/null +++ b/changelog/unreleased/issue-2348 @@ -0,0 +1,10 @@ +Enhancement: Add `--delete` option to `restore` command + +The `restore` command now supports a `--delete` option that allows removing files and directories +from the target directory that do not exist in the snapshot. This option also allows files in the +snapshot to replace non-empty directories. + +To check that only the expected files are deleted add the `--dry-run --verbose=2` options. + +https://github.com/restic/restic/issues/2348 +https://github.com/restic/restic/pull/4881