make --delete in restic restore detault behaviour

This commit is contained in:
Apfelwurm
2026-08-31 17:50:53 +00:00
committed by moritz
parent c99579e5ab
commit dbf3b68362
+1 -1
View File
@@ -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: