|
@@ -37,6 +37,11 @@ def compact_segments(
|
|
|
+ (('--threshold', str(threshold)) if threshold else ())
|
|
|
+ (('--info',) if logger.getEffectiveLevel() == logging.INFO else ())
|
|
|
+ (('--debug', '--show-rc') if logger.isEnabledFor(logging.DEBUG) else ())
|
|
|
+ + (
|
|
|
+ ('--dry-run',)
|
|
|
+ if dry_run and feature.available(feature.Feature.DRY_RUN_COMPACT, local_borg_version)
|
|
|
+ else ()
|
|
|
+ )
|
|
|
+ (tuple(extra_borg_options.split(' ')) if extra_borg_options else ())
|
|
|
+ flags.make_repository_flags(repository_path, local_borg_version)
|
|
|
)
|