瀏覽代碼

exclude configs too and not just the manifest

Divyansh Singh 1 年之前
父節點
當前提交
6b09ca8022
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 3 1
      borgmatic/actions/create.py
  2. 5 1
      borgmatic/borg/create.py

+ 3 - 1
borgmatic/actions/create.py

@@ -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(

+ 5 - 1
borgmatic/borg/create.py

@@ -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(