1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 07:43:06 +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 @@ def build_parser_delete(self, subparsers, common_parser, mid_common_parser):
"""
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``.
When in doubt, use ``--dry-run --list`` to see what would be deleted.

View file

@ -215,7 +215,11 @@ def build_parser_prune(self, subparsers, common_parser, mid_common_parser):
The prune command prunes a repository by deleting all archives not matching
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
certain number of historic backups. This retention policy is commonly referred to as