From 72b1a8ea049a45691becc2d67e6dfc07b62d2aeb Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 3 Nov 2024 13:48:43 +0100 Subject: [PATCH] delete/prune: add hint about undelete --- src/borg/archiver/delete_cmd.py | 7 +++++-- src/borg/archiver/prune_cmd.py | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/borg/archiver/delete_cmd.py b/src/borg/archiver/delete_cmd.py index 5ff05d33d..ee411428b 100644 --- a/src/borg/archiver/delete_cmd.py +++ b/src/borg/archiver/delete_cmd.py @@ -64,8 +64,11 @@ class DeleteMixIn: """ This command deletes archives from the repository. - Important: When deleting archives, 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``. When in doubt, use ``--dry-run --list`` to see what would be deleted. diff --git a/src/borg/archiver/prune_cmd.py b/src/borg/archiver/prune_cmd.py index b970bc36e..654d89fcc 100644 --- a/src/borg/archiver/prune_cmd.py +++ b/src/borg/archiver/prune_cmd.py @@ -215,7 +215,11 @@ class PruneMixIn: 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