forked from TrueCloudLab/rclone
Clarify --filter-from docs
This commit is contained in:
parent
cbea06026a
commit
58f7b4ed7c
1 changed files with 7 additions and 3 deletions
|
@ -265,11 +265,13 @@ processed in.
|
||||||
|
|
||||||
Prepare a file like this `filter-file.txt`
|
Prepare a file like this `filter-file.txt`
|
||||||
|
|
||||||
# a sample exclude rule file
|
# a sample filter rule file
|
||||||
- secret*.jpg
|
- secret*.jpg
|
||||||
+ *.jpg
|
+ *.jpg
|
||||||
+ *.png
|
+ *.png
|
||||||
+ file2.avi
|
+ file2.avi
|
||||||
|
- /dir/Trash/**
|
||||||
|
+ /dir/**
|
||||||
# exclude everything else
|
# exclude everything else
|
||||||
- *
|
- *
|
||||||
|
|
||||||
|
@ -277,8 +279,10 @@ Then use as `--filter-from filter-file.txt`. The rules are processed
|
||||||
in the order that they are defined.
|
in the order that they are defined.
|
||||||
|
|
||||||
This example will include all `jpg` and `png` files, exclude any files
|
This example will include all `jpg` and `png` files, exclude any files
|
||||||
matching `secret*.jpg` and include `file2.avi`. Everything else will
|
matching `secret*.jpg` and include `file2.avi`. It will also include
|
||||||
be excluded from the sync.
|
everything in the directory `dir` at the root of the sync, except
|
||||||
|
`dir/Trash` which it will exclude. Everything else will be excluded
|
||||||
|
from the sync.
|
||||||
|
|
||||||
### `--files-from` - Read list of source-file names ###
|
### `--files-from` - Read list of source-file names ###
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue