mirror of https://github.com/borgbackup/borg.git
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.
(cherry picked from commit 857c5635dd
)
This commit is contained in:
parent
7ed377679b
commit
0377fb38fd
|
@ -1080,12 +1080,12 @@ class Archiver:
|
||||||
manifest.write()
|
manifest.write()
|
||||||
repository.commit(save_space=args.save_space)
|
repository.commit(save_space=args.save_space)
|
||||||
cache.commit()
|
cache.commit()
|
||||||
if args.stats:
|
if args.stats:
|
||||||
log_multi(DASHES,
|
log_multi(DASHES,
|
||||||
STATS_HEADER,
|
STATS_HEADER,
|
||||||
stats.summary.format(label='Deleted data:', stats=stats),
|
stats.summary.format(label='Deleted data:', stats=stats),
|
||||||
str(cache),
|
str(cache),
|
||||||
DASHES, logger=logging.getLogger('borg.output.stats'))
|
DASHES, logger=logging.getLogger('borg.output.stats'))
|
||||||
|
|
||||||
return self.exit_code
|
return self.exit_code
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue