mirror of
https://github.com/kees-z/DuplicatiDocs.git
synced 2025-04-26 15:02:28 +00:00
Explain double backslashes (Windows)
This commit is contained in:
parent
e165624653
commit
474dd053e3
@ -45,7 +45,7 @@ Meta group which contains all groups that are commonly excluded, which is curren
|
||||
|
||||
In the UI, filters can be created using drop down boxes for common rule types. More advanced users can also use a textbox to specify multiple rules, with a rules to include starting with `+` and rules to exclude starting with `-`.
|
||||
|
||||
Using the command-line there are specific settings to specify include or exclude rules. These are `--include` and `--exclude`. Multiple rules can be specified by using `--include` or `--exclude` repeatedly.
|
||||
Using the command-line there are specific settings to specify include or exclude rules. These are `--include` and `--exclude`. Multiple rules can be specified by using `--include` or `--exclude` repeatedly. Note that on Windows a trailing backslash (part of a folder rule) and only that must be doubled to avoid escaping the quotes. Thus a rule looks like `--exclude="*\a\folder rule\\"`. Backslashes in regular expressions must be doubled always: `--exclude="[.*\\a\\folder rule\\]"`
|
||||
|
||||
### Creating and validating your filters
|
||||
|
||||
@ -115,4 +115,4 @@ docker exec duplicati mono /app/duplicati/Duplicati.CommandLine.exe test-filters
|
||||
--exclude="[/mnt/[^/]*/.*\.log]"
|
||||
```
|
||||
|
||||
**Building Regular Expressions:** There are lots of online services such as [Skinners RegExp engine](https://regexr.com) to help build correct regular expressions.
|
||||
**Building Regular Expressions:** There are lots of online services such as [Skinners RegExp engine](https://regexr.com) to help build correct regular expressions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user