From 58f7b4ed7c17b3f8b317e33bafa5d1e9bc683d38 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 1 Sep 2017 11:35:26 +0100 Subject: [PATCH] Clarify --filter-from docs --- docs/content/filtering.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/content/filtering.md b/docs/content/filtering.md index 088bc08a2..029ba821e 100644 --- a/docs/content/filtering.md +++ b/docs/content/filtering.md @@ -265,11 +265,13 @@ processed in. Prepare a file like this `filter-file.txt` - # a sample exclude rule file + # a sample filter rule file - secret*.jpg + *.jpg + *.png + file2.avi + - /dir/Trash/** + + /dir/** # 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. This example will include all `jpg` and `png` files, exclude any files -matching `secret*.jpg` and include `file2.avi`. Everything else will -be excluded from the sync. +matching `secret*.jpg` and include `file2.avi`. It will also include +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 ###