浏览代码

Update patterns schema comment (#962).

Dan Helfman 5 月之前
父节点
当前提交
44efca2be9
共有 2 个文件被更改,包括 2 次插入3 次删除
  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,
         # we could end up with duplicate paths that cause Borg to hang when it tries to read from
         # 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]
 
         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
             backups. Globs are expanded. (Tildes are not.) See the output of
             "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:
             - 'R /'
             - '- /home/*/.cache'