Assume e.g. you want to backup all files matching pattern a to directory A and all files matching pattern b to directory B. The natural way to do this are two separate
rsync --include="...pattern_a..." --exclude="..." user@server:sourcedir/ a/ rsync --include="...pattern_b..." --exclude="..." user@server:sourcedir/ b/
So far, so good. Now assume that the source dir contains lots (!) of files. Running
rsync two times consumes a lot of resources for building the index alone.
Is there a possibility to accomplish things like that in a single
rsync run, hence building the index just once?