From dbf3b68362f5109c9564f9fb90a708a192a13199 Mon Sep 17 00:00:00 2001 From: Apfelwurm Date: Wed, 22 Jul 2026 20:39:34 +0200 Subject: [PATCH] make --delete in restic restore detault behaviour --- backupbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backupbot.py b/backupbot.py index 1a28875..29ecdd9 100755 --- a/backupbot.py +++ b/backupbot.py @@ -225,7 +225,7 @@ def restore_path(snapshot_id, target, noninteractive, paths): def restic_restore(snapshot_id, include=[], target_dir=None): - cmd = restic.cat.base_command() + ["restore", snapshot_id] + cmd = restic.cat.base_command() + ["restore", snapshot_id, "--delete"] for path in include: cmd.extend(["--include", path]) if target_dir: