-
-
Notifications
You must be signed in to change notification settings - Fork 837
borg2: prune vs delete #9424
Copy link
Copy link
Closed
Description
They work slightly different:
Deletion:
- prune: creates
Archiveinstance first, then calls.delete() - delete: only uses the manifest, avoids creating an
Archiveinstance
Logging:
- prune: uses powerful archive formatter for logging (which also potentially creates an
Archiveinstance, but offers a lot of formatting placeholders) - delete: only uses
archive_infoand a very simple formatter (avoiding creation of anArchiveinstance for better robustness)
Check:
- where does the timestamp prune uses for its deletion policy come from, does it need to create an
Archiveinstance (or load the archive metadata from repo otherwise) for that anyway? - shall
prunework in the same way asdelete(making it more robust against defective archives maybe?)
Reactions are currently unavailable