GitHub

@@ -272,8 +272,8 @@ is included.

272272

Any path/file included at that stage is processed by the rclone

273273

command.

274274275-

`--files-from` and `--files-from-raw` flags over-ride and cannot be

276-

combined with other filter options.

275+

`--files-from`, `--files-from-raw` and `--files-from0` flags

276+

over-ride and cannot be combined with other filter options.

277277278278

To see the internal combined rule list, in regular expression form,

279279

for a command add the `--dump filters` flag. Running an rclone command

@@ -396,8 +396,8 @@ processed in.

396396

`--exclude` should not be used with `--include`, `--include-from`,

397397

`--filter` or `--filter-from` flags.

398398399-

`--exclude` has no effect when combined with `--files-from` or

400-

`--files-from-raw` flags.

399+

`--exclude` has no effect when combined with `--files-from`,

400+

`--files-from-raw` or `--files-from0` flags.

401401402402

E.g. `rclone ls remote: --exclude *.bak` excludes all .bak files

403403

from listing.

@@ -440,8 +440,8 @@ are applied to an rclone command.

440440

`--exclude-from` should not be used with `--include`, `--include-from`,

441441

`--filter` or `--filter-from` flags.

442442443-

`--exclude-from` has no effect when combined with `--files-from` or

444-

`--files-from-raw` flags.

443+

`--exclude-from` has no effect when combined with `--files-from`,

444+

`--files-from-raw` or `--files-from0` flags.

445445446446

`--exclude-from` followed by `-` reads filter rules from standard input.

447447

@@ -453,8 +453,8 @@ command.

453453

This flag can be repeated. See above for the order filter flags are

454454

processed in.

455455456-

`--include` has no effect when combined with `--files-from` or

457-

`--files-from-raw` flags.

456+

`--include` has no effect when combined with `--files-from`,

457+

`--files-from-raw` or `--files-from0` flags.

458458459459

`--include` implies `--exclude **` at the end of an rclone internal

460460

filter list. Therefore if you mix `--include` and `--include-from`

@@ -513,8 +513,8 @@ flags with `--exclude`, `--exclude-from`, `--filter` or `--filter-from`,

513513

you must use include rules for all the files you want in the include

514514

statement. For more flexibility use the `--filter-from` flag.

515515516-

`--include-from` has no effect when combined with `--files-from` or

517-

`--files-from-raw` flags.

516+

`--include-from` has no effect when combined with `--files-from`,

517+

`--files-from-raw` or `--files-from0` flags.

518518519519

`--include-from` followed by `-` reads filter rules from standard input.

520520

@@ -531,8 +531,8 @@ implies an `--exclude *` rule which it adds to the bottom of the internal rule

531531

list. `--filter...+` does not imply

532532

that rule.

533533534-

`--filter` has no effect when combined with `--files-from` or

535-

`--files-from-raw` flags.

534+

`--filter` has no effect when combined with `--files-from`,

535+

`--files-from-raw` or `--files-from0` flags.

536536537537

`--filter` should not be used with `--include`, `--include-from`,

538538

`--exclude` or `--exclude-from` flags.

@@ -612,7 +612,7 @@ no others.

612612613613

Other filter flags (`--include`, `--include-from`, `--exclude`,

614614

`--exclude-from`, `--filter` and `--filter-from`) are ignored when

615-

`--files-from` is used.

615+

`--files-from`, `--files-from-raw` or `--files-from0` is used.

616616617617

`--files-from` expects a list of files as its input. Leading or

618618

trailing whitespace is stripped from the input lines. Lines starting

@@ -719,6 +719,21 @@ with `;` or `#` are read without any processing. [rclone lsf](/commands/rclone_l

719719

has a compatible format that can be used to export file lists from remotes for

720720

input to `--files-from-raw`.

721721722+

### `--files-from0` - Read NUL separated list of source-file names

723+724+

This flag is the same as `--files-from-raw` except that input is

725+

split on NUL (`\0`) characters instead of newlines. This allows

726+

handling filenames that contain embedded newline characters.

727+728+

It is similar to the `-print0` option of `find` and the `-0`

729+

option of `xargs`.

730+731+

E.g. to copy files listed by `find`:

732+733+

```console

734+

find /path -print0 | rclone copy --files-from0 - / remote:path

735+

```

736+722737

### `--ignore-case` - make searches case insensitive

723738724739

By default, rclone filter patterns are case sensitive. The `--ignore-case`

@@ -846,7 +861,7 @@ This will stay constant across retries.

846861847862

- Safe to use with `rclone sync`; source and destination selections will match.

848863

- **Do not** use with `--delete-excluded`, as this could delete unselected files.

849-

- Ignored if `--files-from` is used.

864+

- Ignored if `--files-from`, `--files-from-raw` or `--files-from0` is used.

850865851866

#### Examples

852867

Read the original on github.com ↗