1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 07:43:06 +00:00

archive deletion: use store soft-deletion

This keeps the object, just renames it to "*.del".
This commit is contained in:
Thomas Waldmann 2024-11-02 11:40:00 +01:00
parent 179aadc5cc
commit c8bce0329d
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -327,7 +327,7 @@ def delete_by_id(self, id):
# delete an archive
assert isinstance(id, bytes)
assert not self.legacy
self.repository.store_delete(f"archives/{bin_to_hex(id)}")
self.repository.store_move(f"archives/{bin_to_hex(id)}", delete=True) # soft-delete
def list(
self,