"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Update filtering documentation - fixes #306
Werner Beroux6a47d966a410
diff --git a/docs/content/filtering.md b/docs/content/filtering.mdindex 84286ab5b..b0ae9923f 100644--- a/docs/content/filtering.md+++ b/docs/content/filtering.md@@ -1,7 +1,7 @@---title: "Filtering"description: "Filtering, includes and excludes"-date: "2015-09-27"+date: "2016-02-09"---# Filtering, includes and excludes #@@ -14,13 +14,10 @@ The filters are applied for the `copy`, `sync`, `move`, `ls`, `lsl`,Note that `purge` does not obey the filters.Each path as it passes through rclone is matched against the include-and exclude rules. The paths are matched without a leading `/`.--For example the files might be passed to the matching engine like this-- * `file1.jpg`- * `file2.jpg`- * `directory/file3.jpg`+and exclude rules like `--include`, `--exclude`, `--include-from`,+`--exclude-from`, `--filter`, or `--filter-from`. The simplest way to+try them out is using the `ls` command, or `--dry-run` together with+`-v`.## Patterns ##@@ -28,15 +25,15 @@ The patterns used to match files for inclusion or exclusion are basedon "file globs" as used by the unix shell.If the pattern starts with a `/` then it only matches at the top level-of the directory tree. If it doesn't start with `/` then it is-matched starting at the end of the path, but it will only match a-complete path element.+of the directory tree, relative to the root of the remote.+If it doesn't start with `/` then it is matched starting at the+**end of the path**, but it will only match a complete path element:file.jpg - matches "file.jpg"- matches "directory/file.jpg"- doesn't match "afile.jpg"- doesn't match "directory/afile.jpg"- /file.jpg - matches "file.jpg"+ /file.jpg - matches "file.jpg" in the root directory of the remote- doesn't match "afile.jpg"- doesn't match "directory/file.jpg"