2
0
Эх сурвалжийг харах

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

Nehalenniæ Oudin 4 жил өмнө
parent
commit
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
             *.tmp
             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
             $ 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.
 
         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.
 
         .. man NOTES