mirror of
https://github.com/rclone/rclone.git
synced 2025-06-03 18:53:16 +08:00
fs: filter flags ability to read from stdin - fixes #4034
This commit is contained in:

committed by
Nick Craig-Wood

parent
a6a2eec392
commit
eb0fc21533
@ -17,7 +17,8 @@ Each path as it passes through rclone is matched against the include
|
||||
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`.
|
||||
`-v`. `--filter-from`, `--exclude-from`, `--include-from`, `--files-from`
|
||||
understand `-` as a file name to mean read from standard input.
|
||||
|
||||
## Patterns ##
|
||||
|
||||
|
@ -41,13 +41,13 @@ These flags are available for every command.
|
||||
--dump-bodies Dump HTTP headers and bodies - may contain sensitive info
|
||||
--dump-headers Dump HTTP headers - may contain sensitive info
|
||||
--exclude stringArray Exclude files matching pattern
|
||||
--exclude-from stringArray Read exclude patterns from file
|
||||
--exclude-from stringArray Read exclude patterns from file (use - to read from stdin).
|
||||
--exclude-if-present string Exclude directories if filename is present
|
||||
--expect-continue-timeout duration Timeout when using expect / 100-continue in HTTP (default 1s)
|
||||
--fast-list Use recursive list if available. Uses more memory but fewer transactions.
|
||||
--files-from stringArray Read list of source-file names from file
|
||||
--files-from stringArray Read list of source-file names from file (use - to read from stdin).
|
||||
-f, --filter stringArray Add a file-filtering rule
|
||||
--filter-from stringArray Read filtering patterns from a file
|
||||
--filter-from stringArray Read filtering patterns from a file (use - to read from stdin).
|
||||
--ignore-case Ignore case in filters (case insensitive)
|
||||
--ignore-case-sync Ignore case when synchronizing
|
||||
--ignore-checksum Skip post copy check of checksums.
|
||||
@ -57,7 +57,7 @@ These flags are available for every command.
|
||||
-I, --ignore-times Don't skip files that match size and time - transfer all files
|
||||
--immutable Do not modify files. Fail if existing files have been modified.
|
||||
--include stringArray Include files matching pattern
|
||||
--include-from stringArray Read include patterns from file
|
||||
--include-from stringArray Read include patterns from file (use - to read from stdin).
|
||||
--log-file string Log everything to this file
|
||||
--log-format string Comma separated list of log format options (default "date,time")
|
||||
--log-level string Log level DEBUG|INFO|NOTICE|ERROR (default "NOTICE")
|
||||
|
Reference in New Issue
Block a user