Skip to content

Commit

Permalink
add prune flag to restic forget (#15413)
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorcary authored Jan 16, 2025
1 parent 169b5c8 commit 96b8629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/cloud_backup/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def _sync(self, cloud_backup, options, job):
restic_config = get_restic_config(cloud_backup)
await run_restic(
job,
restic_config.cmd + ["forget", "--keep-last", str(cloud_backup["keep_last"])],
restic_config.cmd + ["forget", "--keep-last", str(cloud_backup["keep_last"]), "--prune"],
restic_config.env,
)

Expand Down

0 comments on commit 96b8629

Please sign in to comment.