1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-11 14:48:22 +00:00

delete/prune: add hint about undelete

This commit is contained in:
Thomas Waldmann 2024-11-03 13:48:43 +01:00
parent a48a8d2bea
commit 72b1a8ea04
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 10 additions and 3 deletions

View file

@ -64,7 +64,10 @@ class DeleteMixIn:
""" """
This command deletes archives from the repository. This command deletes archives from the repository.
Important: When deleting archives, repository disk space is **not** freed until Important:
- Repository disk space is **not** freed until you run ``borg compact``.
- You can use ``borg undelete`` to undelete archives, but only until
you run ``borg compact``. you run ``borg compact``.
When in doubt, use ``--dry-run --list`` to see what would be deleted. When in doubt, use ``--dry-run --list`` to see what would be deleted.

View file

@ -215,7 +215,11 @@ class PruneMixIn:
The prune command prunes a repository by deleting all archives not matching The prune command prunes a repository by deleting all archives not matching
any of the specified retention options. any of the specified retention options.
Important: Repository disk space is **not** freed until you run ``borg compact``. Important:
- Repository disk space is **not** freed until you run ``borg compact``.
- You can use ``borg undelete`` to undelete archives, but only until
you run ``borg compact``.
This command is normally used by automated backup scripts wanting to keep a This command is normally used by automated backup scripts wanting to keep a
certain number of historic backups. This retention policy is commonly referred to as certain number of historic backups. This retention policy is commonly referred to as