exclude configs too and not just the manifest

This commit is contained in:
Divyansh Singh 2023-08-01 01:51:37 +05:30
parent f2ce2f387f
commit 6b09ca8022
2 changed files with 8 additions and 2 deletions

View file

@ -92,7 +92,9 @@ def run_create(
global_arguments.dry_run,
)
if config.get('store_config_files', True):
create_borgmatic_manifest(config, global_arguments.used_config_paths, global_arguments.dry_run)
create_borgmatic_manifest(
config, global_arguments.used_config_paths, global_arguments.dry_run
)
stream_processes = [process for processes in active_dumps.values() for process in processes]
json_output = borgmatic.borg.create.create_archive(

View file

@ -354,7 +354,11 @@ def create_archive(
expand_directories(
tuple(config.get('source_directories', ()))
+ borgmatic_source_directories
+ tuple(global_arguments.used_config_paths)
+ tuple(
global_arguments.used_config_paths
if config.get('store_config_files', True)
else ()
)
)
),
additional_directory_devices=map_directories_to_devices(