2
0
Эх сурвалжийг харах

archive deletion: use store soft-deletion

This keeps the object, just renames it to "*.del".
Thomas Waldmann 7 сар өмнө
parent
commit
c8bce0329d
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/borg/manifest.py

+ 1 - 1
src/borg/manifest.py

@@ -327,7 +327,7 @@ class Archives:
         # 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,