mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 01:41:57 -04:00
added stats to prune command, fixes #9262
-v / --info displays archive counts (total, kept, pruned).
This commit is contained in:
parent
c18184550f
commit
b2fe60c345
1 changed files with 2 additions and 0 deletions
|
|
@ -170,6 +170,8 @@ class PruneMixIn:
|
|||
keep += prune_split(archives, rule, num, kept_because)
|
||||
|
||||
to_delete = set(archives) - set(keep)
|
||||
logger.info("Found %d archives.", len(archives))
|
||||
logger.info("Keeping %d archives, pruning %d archives.", len(keep), len(to_delete))
|
||||
with Cache(repository, manifest, iec=args.iec) as cache:
|
||||
list_logger = logging.getLogger("borg.output.list")
|
||||
# set up counters for the progress display
|
||||
|
|
|
|||
Loading…
Reference in a new issue