I have two directories dirOrig and dirDest in different remote servers. Both of them have numerous subdirectories at various depths. I now need to copy a specific file or extension -- say file1.txt recursively from dirOrig to dirDest. But, I need to copy the file only if the subdirectory is already present in dirDest. For example, I can systematically copy only a specific file from source to destination using rsync usingrsync -zarv  --prune-empty-dirs --include */  --include=file1.txt --exclude=* dirOrig dirDestBut how to restrict this copy only to the subdirectories present in the destination (dirDest)
sync a particular file recursively but only in the subdirectories present in destination
rsync;remote;file copy;synchronization