If you sync with a filter - does the filter only apply to the source, or source+destination?
In other words, will anything not inside the filter end up getting deleted on the destination?
Example:
DESTINATION: contains some files - aplha.txt + beta.txt, + charlie.txt
SOURCE: contains only a more recent version of alpha.txt
rclone sync SOURCE: DESTINATION: --include [a]*
What is the result?
(1) alpha gets updated, while beta and charlie get deleted?
or
(2) alpha gets updated, while beta and charlie are ignored?
I would assume (1), but it would nice to have confirmation on this. Also - is there any way to get it to behave like (2) ?
Obviously this example is artificial and not truly representative. Telling me that I can just use move or copy for this spesific example would not be helpful. I would need it to work generally as sync normally does - except only considering the synced sub-sets on both sides.
Huh, so it actually (2) then - and the filters apply on both sides. (correct me if I am wrong here).
Thanks Ani <3
It's mostly because I am a little paranoid about having ambiguous details in in potentially destructive commands that I wanted to ask for confirmation. Having your verification on it greatly reassures me
This opens up a couple of new avenues for making my scripts more robust and effective. Very useful.