From bb99009191e7c3e3b5f8776e895cc6bb62c2b03c Mon Sep 17 00:00:00 2001 From: newtonne Date: Sun, 18 Feb 2018 22:18:25 +0000 Subject: [PATCH] Fix issue when using both --dry-run and -v options. --- borgmatic/borg/create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/borgmatic/borg/create.py b/borgmatic/borg/create.py index fd3593b..04ffcba 100644 --- a/borgmatic/borg/create.py +++ b/borgmatic/borg/create.py @@ -123,8 +123,8 @@ def create_archive( files_cache_flags = ('--files-cache', files_cache) if files_cache else () remote_path_flags = ('--remote-path', remote_path) if remote_path else () verbosity_flags = { - VERBOSITY_SOME: ('--info', '--stats',), - VERBOSITY_LOTS: ('--debug', '--list', '--stats'), + VERBOSITY_SOME: ('--info',) if dry_run else ('--info', '--stats',), + VERBOSITY_LOTS: ('--debug', '--list',) if dry_run else ('--debug', '--list', '--stats',), }.get(verbosity, ()) dry_run_flags = ('--dry-run',) if dry_run else () default_archive_name_format = '{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}'