|
@@ -2,7 +2,7 @@ import logging
|
|
|
|
|
|
import borgmatic.logger
|
|
import borgmatic.logger
|
|
from borgmatic.borg import environment, flags
|
|
from borgmatic.borg import environment, flags
|
|
-from borgmatic.execute import execute_command
|
|
|
|
|
|
+from borgmatic.execute import DO_NOT_CAPTURE, execute_command
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
@@ -28,6 +28,7 @@ def transfer_archives(
|
|
+ (('--debug', '--show-rc') if logger.isEnabledFor(logging.DEBUG) else ())
|
|
+ (('--debug', '--show-rc') if logger.isEnabledFor(logging.DEBUG) else ())
|
|
+ flags.make_flags('remote-path', remote_path)
|
|
+ flags.make_flags('remote-path', remote_path)
|
|
+ flags.make_flags('lock-wait', storage_config.get('lock_wait', None))
|
|
+ flags.make_flags('lock-wait', storage_config.get('lock_wait', None))
|
|
|
|
+ + (('--progress',) if transfer_arguments.progress else ())
|
|
+ (
|
|
+ (
|
|
flags.make_flags(
|
|
flags.make_flags(
|
|
'match-archives', transfer_arguments.match_archives or transfer_arguments.archive
|
|
'match-archives', transfer_arguments.match_archives or transfer_arguments.archive
|
|
@@ -45,6 +46,7 @@ def transfer_archives(
|
|
return execute_command(
|
|
return execute_command(
|
|
full_command,
|
|
full_command,
|
|
output_log_level=logging.ANSWER,
|
|
output_log_level=logging.ANSWER,
|
|
|
|
+ output_file=DO_NOT_CAPTURE if transfer_arguments.progress else None,
|
|
borg_local_path=local_path,
|
|
borg_local_path=local_path,
|
|
extra_environment=environment.make_environment(storage_config),
|
|
extra_environment=environment.make_environment(storage_config),
|
|
)
|
|
)
|