|
@@ -33,6 +33,7 @@ import borgmatic.actions.restore
|
|
import borgmatic.actions.transfer
|
|
import borgmatic.actions.transfer
|
|
import borgmatic.commands.completion.bash
|
|
import borgmatic.commands.completion.bash
|
|
import borgmatic.commands.completion.fish
|
|
import borgmatic.commands.completion.fish
|
|
|
|
+import borgmatic.config.paths
|
|
from borgmatic.borg import umount as borg_umount
|
|
from borgmatic.borg import umount as borg_umount
|
|
from borgmatic.borg import version as borg_version
|
|
from borgmatic.borg import version as borg_version
|
|
from borgmatic.commands.arguments import parse_arguments
|
|
from borgmatic.commands.arguments import parse_arguments
|
|
@@ -207,6 +208,7 @@ def run_configuration(config_filename, config, config_paths, arguments):
|
|
command_hooks=config.get('commands'),
|
|
command_hooks=config.get('commands'),
|
|
before_after='configuration',
|
|
before_after='configuration',
|
|
umask=config.get('umask'),
|
|
umask=config.get('umask'),
|
|
|
|
+ working_directory=borgmatic.config.paths.get_working_directory(config),
|
|
dry_run=global_arguments.dry_run,
|
|
dry_run=global_arguments.dry_run,
|
|
action_names=arguments.keys(),
|
|
action_names=arguments.keys(),
|
|
configuration_filename=config_filename,
|
|
configuration_filename=config_filename,
|
|
@@ -286,6 +288,7 @@ def run_configuration(config_filename, config, config_paths, arguments):
|
|
config.get('commands'), after='error', action_names=arguments.keys()
|
|
config.get('commands'), after='error', action_names=arguments.keys()
|
|
),
|
|
),
|
|
config.get('umask'),
|
|
config.get('umask'),
|
|
|
|
+ borgmatic.config.paths.get_working_directory(config),
|
|
global_arguments.dry_run,
|
|
global_arguments.dry_run,
|
|
configuration_filename=config_filename,
|
|
configuration_filename=config_filename,
|
|
log_file=arguments['global'].log_file or '',
|
|
log_file=arguments['global'].log_file or '',
|
|
@@ -342,6 +345,7 @@ def run_actions(
|
|
command_hooks=config.get('commands'),
|
|
command_hooks=config.get('commands'),
|
|
before_after='repository',
|
|
before_after='repository',
|
|
umask=config.get('umask'),
|
|
umask=config.get('umask'),
|
|
|
|
+ working_directory=borgmatic.config.paths.get_working_directory(config),
|
|
dry_run=global_arguments.dry_run,
|
|
dry_run=global_arguments.dry_run,
|
|
action_names=arguments.keys(),
|
|
action_names=arguments.keys(),
|
|
**hook_context,
|
|
**hook_context,
|
|
@@ -354,6 +358,7 @@ def run_actions(
|
|
command_hooks=config.get('commands'),
|
|
command_hooks=config.get('commands'),
|
|
before_after='action',
|
|
before_after='action',
|
|
umask=config.get('umask'),
|
|
umask=config.get('umask'),
|
|
|
|
+ working_directory=borgmatic.config.paths.get_working_directory(config),
|
|
dry_run=global_arguments.dry_run,
|
|
dry_run=global_arguments.dry_run,
|
|
action_names=arguments.keys(),
|
|
action_names=arguments.keys(),
|
|
**hook_context,
|
|
**hook_context,
|
|
@@ -854,6 +859,7 @@ def collect_configuration_run_summary_logs(configs, config_paths, arguments):
|
|
config.get('commands'), before='everything', action_names=arguments.keys()
|
|
config.get('commands'), before='everything', action_names=arguments.keys()
|
|
),
|
|
),
|
|
config.get('umask'),
|
|
config.get('umask'),
|
|
|
|
+ borgmatic.config.paths.get_working_directory(config),
|
|
arguments['global'].dry_run,
|
|
arguments['global'].dry_run,
|
|
configuration_filename=config_filename,
|
|
configuration_filename=config_filename,
|
|
log_file=arguments['global'].log_file or '',
|
|
log_file=arguments['global'].log_file or '',
|
|
@@ -908,6 +914,7 @@ def collect_configuration_run_summary_logs(configs, config_paths, arguments):
|
|
config.get('commands'), after='everything', action_names=arguments.keys()
|
|
config.get('commands'), after='everything', action_names=arguments.keys()
|
|
),
|
|
),
|
|
config.get('umask'),
|
|
config.get('umask'),
|
|
|
|
+ borgmatic.config.paths.get_working_directory(config),
|
|
arguments['global'].dry_run,
|
|
arguments['global'].dry_run,
|
|
configuration_filename=config_filename,
|
|
configuration_filename=config_filename,
|
|
log_file=arguments['global'].log_file or '',
|
|
log_file=arguments['global'].log_file or '',
|