Skip to content

Commit 614d8e3

Browse files
Merge pull request #9420 from ThomasWaldmann/add-prune-stats-master
added stats to prune command, fixes #9262
2 parents c181845 + b2fe60c commit 614d8e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/borg/archiver/prune_cmd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ def do_prune(self, args, repository, manifest):
170170
keep += prune_split(archives, rule, num, kept_because)
171171

172172
to_delete = set(archives) - set(keep)
173+
logger.info("Found %d archives.", len(archives))
174+
logger.info("Keeping %d archives, pruning %d archives.", len(keep), len(to_delete))
173175
with Cache(repository, manifest, iec=args.iec) as cache:
174176
list_logger = logging.getLogger("borg.output.list")
175177
# set up counters for the progress display

0 commit comments

Comments
 (0)