RC command for excluding multiple folders

What is the problem you are having with rclone?

I want to exclude multiple folders from a sync job. I currently have _filter={"ExcludeRule":["rClone/**"]} and it works. I wish to add another folder, how do I do it? What is the correct syntax?

Run the command 'rclone version' and share the full output of the command.

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

_filter={\"ExcludeRule\":[\"rClone/**\"]}

The rclone config contents with secrets removed.

Not relevant.

A log from the command with the -vv flag

Not relevant.

Documented here:

Remote Control / API (rclone.org)

It is a JSON blob, so it should look like

_filter={\"ExcludeRule\":[\"rClone/**\",\"rClone2/**\",\"rClone3/**\",\"rClone4/**\"]}

Though if you are on a non-Windows OS you can write

_filter='{"ExcludeRule":["rClone/**","rClone2/**","rClone3/**","rClone4/**"]}'

which is a whole lot easier to read!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.