mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-09 00:32:37 -04:00
fixup: output stats in dry-run mode
it will just show nothing was deleted, but one sees how it would look like. this is also for consistency with borg prune --dry-run --stats, which behaves the same.
This commit is contained in:
parent
ec4ccc0b6b
commit
857c5635dd
1 changed files with 6 additions and 6 deletions
|
|
@ -1279,12 +1279,12 @@ class Archiver:
|
|||
manifest.write()
|
||||
repository.commit(save_space=args.save_space)
|
||||
cache.commit()
|
||||
if args.stats:
|
||||
log_multi(DASHES,
|
||||
STATS_HEADER,
|
||||
stats.summary.format(label='Deleted data:', stats=stats),
|
||||
str(cache),
|
||||
DASHES, logger=logging.getLogger('borg.output.stats'))
|
||||
if args.stats:
|
||||
log_multi(DASHES,
|
||||
STATS_HEADER,
|
||||
stats.summary.format(label='Deleted data:', stats=stats),
|
||||
str(cache),
|
||||
DASHES, logger=logging.getLogger('borg.output.stats'))
|
||||
|
||||
return self.exit_code
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue