Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/borg/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,12 +1705,23 @@ def checkpoint_func():
elif uncommitted_deletes > 0:
checkpoint_func()
if args.stats:
stats_logger = logging.getLogger('borg.output.stats')
stats_logger.info('Archive counts:')
stats_logger.info('Number of archives: %d', len(manifest.archives))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that way, the numbers are left-aligned.

guess I'ld prefer either:

  • no alignment (simplest)
  • right aligned


if args.glob_archives:
stats_logger.info('Number of archives matching pattern: %d', len(archives_checkpoints))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe say "globbing pattern" to be more specific.


stats_logger.info('Number of archives kept: %d', len(archives_checkpoints) - len(to_delete))
stats_logger.info('Number of archives pruned: %d', len(to_delete))
stats_logger.info(' ')

log_multi(DASHES,
STATS_HEADER,
stats.summary.format(label='Deleted data:', stats=stats),
str(cache),
DASHES, logger=logging.getLogger('borg.output.stats'))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@with_repository(fake=('tam', 'check_tam', 'disable_tam', 'archives_tam', 'check_archives_tam'), invert_fake=True, manifest=False, exclusive=True)
def do_upgrade(self, args, repository, manifest=None, key=None):
"""upgrade a repository from a previous version"""
Expand Down
Loading