delete plan and data files on repo #606
-
I would like to ask if there is a way to remove all files from the repository after deleting a plan. I found the "Forget (Destructive)" button in each snapshot, but if you have many snapshots, it becomes very tedious to apply this action to all of them. Also, I’m not sure if it fully deletes all data from the repository. Is there a command I can use to delete the data files of a deleted plan? I have some knowledge of Restic, but I’m not very familiar with it. I prefer managing everything directly from Backrest, which I find very user-friendly. is very good Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, this sort of thing is what the In your case, you'll want something like
And then you'll need to manually delete the last snapshot with the tag (restic blocks operations that would delete every snapshot as a safety measure). It's not a capability I have plans to add to the UI since I think making it a bit difficult reduces the risks of someone in-advertantly clicking a button they don't understand and "nuking" their backups, but I'm open to changing that philosophy. |
Beta Was this translation helpful? Give feedback.
Hey, this sort of thing is what the
Run Command
feature aims to support. Easiest way to do this is to get familiar with the restic CLI. https://restic.readthedocs.io/en/stable/060_forget.html#removing-all-snapshots .In your case, you'll want something like
forget --tag plan:<your plan ID> --keep-last-n 1 --dry-run
which previews what would be forgotten but removes nothing -- check the output to be sure everything you expect is getting picked up.forget --tag plan:<your plan ID> --keep-last-n 1
to actually do the delete.And then you'll need to manually delete the last snapshot with the tag (restic blocks operations that would delete every snapshot as a safety measure).
It's not a capa…