Skip to content

Commit

Permalink
Complements the documentation for pattern files and exclude files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Dec 3, 2020
1 parent 22c463f commit abce2ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/borg/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2320,8 +2320,10 @@ def do_break_lock(self, args, repository):
/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 /
Expand Down Expand Up @@ -3307,6 +3309,7 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
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
Expand Down

0 comments on commit abce2ee

Please sign in to comment.