STOP and READ:
Please show the effort you've put in to solving the problem and please be specific -- people are volunteering their time to help you! Low effort posts are not likely to get good answers!
Did you miss the template and all the actual useful information that we need to collect to give you a hand and validate what's going on?
Actually, I just started it as a Feature, and then I decided it's actually a bug (after having read some "maybe duplicate" topics).
That's probably why the template was missing.
I'll fill it later, as I am on a different device right now.
What is the problem you are having with rclone?
What is your rclone version (output from rclone version)
You can use rclone ls to test filter flags and see what the output is.
I'm still really not following on what you are trying to do and what the issue is.
If you exclude something in a filter, it won't modify the destination with said filter.
felix@gemini:~/test1$ rclone sync --exclude test4.out /home/felix/test1 /home/felix/test2 --dry-run
2021/01/05 08:21:18 NOTICE: test1.out: Skipped copy as --dry-run is set
2021/01/05 08:21:18 NOTICE: test2.out: Skipped copy as --dry-run is set
2021/01/05 08:21:18 NOTICE: test3.out: Skipped copy as --dry-run is set
felix@gemini:~/test1$ rclone sync --exclude test4.out /home/felix/test1 /home/felix/test2 -v
2021/01/05 08:21:25 INFO : test1.out: Copied (new)
2021/01/05 08:21:25 INFO : test2.out: Copied (new)
2021/01/05 08:21:25 INFO : test3.out: Copied (new)
2021/01/05 08:21:25 INFO :
Transferred: 300M / 300 MBytes, 100%, 1.327 GBytes/s, ETA 0s
Transferred: 3 / 3, 100%
Elapsed time: 0.2s
felix@gemini:~/test1$ ls ../test2
test1.out test2.out test3.out test4.out
felix@gemini:~/test1$ ls
test1.out test2.out test3.out test4.out
felix@gemini:~/test1$
Another example with a directory.
felix@gemini:~/test1$ rclone sync --exclude test4.out --exclude test4/** /home/felix/test1 /home/felix/test2 -vv
2021/01/05 08:23:31 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "sync" "--exclude" "test4.out" "--exclude" "test4/**" "/home/felix/test1" "/home/felix/test2" "-vv"]
2021/01/05 08:23:31 DEBUG : Creating backend with remote "/home/felix/test1"
2021/01/05 08:23:31 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2021/01/05 08:23:31 DEBUG : Creating backend with remote "/home/felix/test2"
2021/01/05 08:23:31 DEBUG : test4.out: Excluded
2021/01/05 08:23:31 DEBUG : test4: Excluded
2021/01/05 08:23:31 DEBUG : test4.out: Excluded
2021/01/05 08:23:31 DEBUG : test1.out: Size and modification time the same (differ by 0s, within tolerance 1ns)
2021/01/05 08:23:31 DEBUG : test1.out: Unchanged skipping
2021/01/05 08:23:31 DEBUG : test2.out: Size and modification time the same (differ by 0s, within tolerance 1ns)
2021/01/05 08:23:31 DEBUG : test2.out: Unchanged skipping
2021/01/05 08:23:31 DEBUG : Local file system at /home/felix/test2: Waiting for checks to finish
2021/01/05 08:23:31 DEBUG : test3.out: Size and modification time the same (differ by 0s, within tolerance 1ns)
2021/01/05 08:23:31 DEBUG : test3.out: Unchanged skipping
2021/01/05 08:23:31 DEBUG : Local file system at /home/felix/test2: Waiting for transfers to finish
2021/01/05 08:23:31 DEBUG : Waiting for deletions to finish
2021/01/05 08:23:31 INFO : There was nothing to transfer
2021/01/05 08:23:31 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks: 3 / 3, 100%
Elapsed time: 0.0s
2021/01/05 08:23:31 DEBUG : 2 go routines active
felix@gemini:~/test1$ ls ../test2
test1.out test2.out test3.out test4 test4.out
I have a directory (python git repo) that I am manually syncing from gdrive.
When I am pushing, there is no need to sync some stuff (.gitignore typical stuff), and therefore I invoke:
I am not sure how you do it and you cannot replicate it; maybe it's because both of your directories are local? Maybe both of them somehow have been including the files and the files are miraculously not touched?
Change the word 'sync' to 'ls' and change the MY_DIR to whatever location you want. Rclone ls just lists out the files and you can test if your filters are working properly and share what the output is.
I normally use ls to test filters and once I'm settled that it does what I want, I use copy/sync/etc.