Hello, I would like to exclude some files (.jpg, .png, .log) from the subfolder devices.
I've read the docs and it seems that multiple --exclude is the way to do it. I just don't understand if I've to use the full path or if --exclude=device/*.jpg --exclude=device/*.png --exclude=device/*.log is enough.
If I've already synced in the past, without the exclude, a new sync with exclude would remove from remote the filtered files?
What is your rclone version (output from rclone version)
rclone v1.54.1
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu Server 64bit
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)
Filtering can be hard to get right. The following site is great to play around and see how your filters would work out: https://filterdemo.rclone.org/. Also, testing filters with rclone lsf commands, and also with --dry-run added to your copy/sync command, can be useful. If you are familiar with regular expression syntax, --dump filters will give you valuable insight.
A filter device/*.jpg will match remote:/devices/flower.jpg as well as remote:/some/dir/devices/flower.jpg.
A filter /device/*.jpg will match remote:/devices/flower.jpg, but not remote:/some/dir/devices/flower.jpg.
So depending on what you want, your example could make perfect sense: