mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-21 13:47:16 +00:00
docs: explain the difference between a path that ends with or without a slash (#6297)
docs: explain the difference between a path that ends with or without a slash
This commit is contained in:
parent
da763cedda
commit
6015ded828
1 changed files with 5 additions and 0 deletions
|
@ -2234,6 +2234,11 @@ def do_break_lock(self, args, repository):
|
|||
/path/to/repo /home/user`` will store all files as
|
||||
`home/user/.../file.ext`.
|
||||
|
||||
A directory exclusion pattern can end either with or without a slash ('/').
|
||||
If it ends with a slash, such as `some/path/`, the directory will be
|
||||
included but not its content. If it does not end with a slash, such as
|
||||
`some/path`, both the directory and content will be excluded.
|
||||
|
||||
File patterns support these styles: fnmatch, shell, regular expressions,
|
||||
path prefixes and path full-matches. By default, fnmatch is used for
|
||||
``--exclude`` patterns and shell-style is used for the ``--pattern``
|
||||
|
|
Loading…
Reference in a new issue