Browse Source

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

docs: "filename with spaces" example added to exclude file, fixes #5236

note: no whitespace escaping needed, processed by borg.
Nehalenniæ Oudin 4 years ago
parent
commit
2c8e523848
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/borg/archiver.py

+ 3 - 0
src/borg/archiver.py

@@ -2227,6 +2227,8 @@ class Archiver:
             fm:aa:something/*
             fm:aa:something/*
             re:^home/[^/]\\.tmp/
             re:^home/[^/]\\.tmp/
             sh:home/*/.thumbnails
             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 /
 
 
@@ -3106,6 +3108,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