I am running my calculations on different local machines. Say I have folders AB/ with 95 folders in machine A and corresponding AB/ with 90 folders in machine B. If I run rsync operation, it tries to sync all 95 folders including tons of subfolders within each folders, making it quite inefficient. I want to just copy only 5 folders from machine A to machine B. What's the best way to achieve this goal?
Specifically, when I ran
rsync -rv AB/ $USER@host:/path/to/AB it tries to match all the folders and subfolders and takes around 4-5 minutes for the whole operation, which is akin to scp the whole folders from A to B.