浏览代码

Merge pull request #4600 from d7415/pattern_example

Add example of exclude-norecurse rule in help patterns
TW 6 年之前
父节点
当前提交
35373b8b93
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/borg/archiver.py

+ 3 - 1
src/borg/archiver.py

@@ -2181,7 +2181,9 @@ class Archiver:
                 # include susans home
                 # include susans home
                 + /home/susan
                 + /home/susan
                 # don't backup the other home directories
                 # don't backup the other home directories
-                - /home/*\n\n''')
+                - /home/*
+                # don't even look in /proc
+                ! /proc\n\n''')
     helptext['placeholders'] = textwrap.dedent('''
     helptext['placeholders'] = textwrap.dedent('''
         Repository (or Archive) URLs, ``--prefix``, ``--glob-archives``, ``--comment``
         Repository (or Archive) URLs, ``--prefix``, ``--glob-archives``, ``--comment``
         and ``--remote-path`` values support these placeholders:
         and ``--remote-path`` values support these placeholders: