Browse Source

Merge pull request #4600 from d7415/pattern_example

Add example of exclude-norecurse rule in help patterns
TW 6 years ago
parent
commit
35373b8b93
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/borg/archiver.py

+ 3 - 1
src/borg/archiver.py

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