Browse Source

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

Nehalenniæ Oudin 4 years ago
parent
commit
954be6dd59
1 changed files with 5 additions and 2 deletions
  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