瀏覽代碼

Complements the documentation for pattern files and exclude files (#5524)

Nehalenniæ Oudin 5 年之前
父節點
當前提交
954be6dd59
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/borg/archiver.py

+ 5 - 2
src/borg/archiver.py

@@ -2320,8 +2320,10 @@ class Archiver:
             /home/*/junk
             /home/*/junk
             *.tmp
             *.tmp
             fm:aa:something/*
             fm:aa:something/*
-            re:^/home/[^/]\\.tmp/
-            sh:/home/*/.thumbnails
+            re:^home/[^/]\\.tmp/
+            sh:home/*/.thumbnails
+             # Example with spaces, no need to escape as it is processed by borg
+            some file with spaces.txt
             EOF
             EOF
             $ borg create --exclude-from exclude.txt backup /
             $ borg create --exclude-from exclude.txt backup /
 
 
@@ -3307,6 +3309,7 @@ class Archiver:
         exclusive because the data is not actually compressed and deduplicated during a dry run.
         exclusive because the data is not actually compressed and deduplicated during a dry run.
 
 
         See the output of the "borg help patterns" command for more help on exclude patterns.
         See the output of the "borg help patterns" command for more help on exclude patterns.
+
         See the output of the "borg help placeholders" command for more help on placeholders.
         See the output of the "borg help placeholders" command for more help on placeholders.
 
 
         .. man NOTES
         .. man NOTES