mirror of
https://github.com/rclone/rclone
synced 2024-12-21 11:45:56 +01:00
docs: add a Windows example to the filtering docs
Add an example pinched from rclone forum https://forum.rclone.org/t/need-help-to-understand-filtering-commands/22196 Credit to @asdffdsa
This commit is contained in:
parent
92e36fcfc5
commit
1efb543ad8
@ -78,6 +78,24 @@ separator or the beginning of the path/file.
|
||||
- doesn't match "afile.jpg"
|
||||
- doesn't match "directory/file.jpg"
|
||||
|
||||
The top level of the remote may not be the top level of the drive.
|
||||
|
||||
E.g. for a Microsoft Windows local directory structure
|
||||
|
||||
F:
|
||||
├── bkp
|
||||
├── data
|
||||
│ ├── excl
|
||||
│ │ ├── 123.jpg
|
||||
│ │ └── 456.jpg
|
||||
│ ├── incl
|
||||
│ │ └── document.pdf
|
||||
|
||||
To copy the contents of folder `data` into folder `bkp` excluding the contents of subfolder
|
||||
`excl`the following command treats `F:\data` and `F:\bkp` as top level for filtering.
|
||||
|
||||
`rclone copy F:\data\ F:\bkp\ --exclude=/excl/**`
|
||||
|
||||
**Important** Use `/` in path/file name patterns and not `\` even if
|
||||
running on Microsoft Windows.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user