2
0
Эх сурвалжийг харах

feat: optionally disable config bootstrap

Divyansh Singh 1 жил өмнө
parent
commit
f2ce2f387f

+ 2 - 1
borgmatic/actions/create.py

@@ -91,7 +91,8 @@ def run_create(
         borgmatic.hooks.dump.DATABASE_HOOK_NAMES,
         global_arguments.dry_run,
     )
-    create_borgmatic_manifest(config, global_arguments.used_config_paths, global_arguments.dry_run)
+    if config.get('store_config_files', True):
+        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(

+ 7 - 0
borgmatic/config/schema.yaml

@@ -210,6 +210,13 @@ properties:
             "borgmatic restore" from finding any database dumps created before
             the change. Defaults to ~/.borgmatic
         example: /tmp/borgmatic
+    store_config_files:
+        type: boolean
+        description: |
+            Store configuration files used to create a backup in the backup
+            itself. Defaults to true. Changing this to false prevents "borgmatic
+            bootstrap" from extracting configuration files from the backup. 
+        example: true
     source_directories_must_exist:
         type: boolean
         description: |