Browse Source

Update patterns schema comment (#962).

Dan Helfman 5 months ago
parent
commit
44efca2be9
2 changed files with 2 additions and 3 deletions
  1. 1 1
      borgmatic/actions/create.py
  2. 1 2
      borgmatic/config/schema.yaml

+ 1 - 1
borgmatic/actions/create.py

@@ -311,7 +311,7 @@ def run_create(
         # Process the patterns again in case any data source hooks updated them. Without this step,
         # Process the patterns again in case any data source hooks updated them. Without this step,
         # we could end up with duplicate paths that cause Borg to hang when it tries to read from
         # we could end up with duplicate paths that cause Borg to hang when it tries to read from
         # the same named pipe twice.
         # the same named pipe twice.
-        # patterns = process_patterns(patterns, working_directory, skip_expand_paths=config_paths)
+        patterns = process_patterns(patterns, working_directory, skip_expand_paths=config_paths)
         stream_processes = [process for processes in active_dumps.values() for process in processes]
         stream_processes = [process for processes in active_dumps.values() for process in processes]
 
 
         json_output = borgmatic.borg.create.create_archive(
         json_output = borgmatic.borg.create.create_archive(

+ 1 - 2
borgmatic/config/schema.yaml

@@ -131,8 +131,7 @@ properties:
             Any paths matching these patterns are included/excluded from
             Any paths matching these patterns are included/excluded from
             backups. Globs are expanded. (Tildes are not.) See the output of
             backups. Globs are expanded. (Tildes are not.) See the output of
             "borg help patterns" for more details. Quote any value if it
             "borg help patterns" for more details. Quote any value if it
-            contains leading punctuation, so it parses correctly. Note that only
-            one of "patterns" and "source_directories" may be used.
+            contains leading punctuation, so it parses correctly.
         example:
         example:
             - 'R /'
             - 'R /'
             - '- /home/*/.cache'
             - '- /home/*/.cache'