mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-21 23:33:07 +00:00
archive deletion: use store soft-deletion
This keeps the object, just renames it to "*.del".
This commit is contained in:
parent
179aadc5cc
commit
c8bce0329d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue