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()
|
||||
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 New Issue