Rsync exclude (or include) issue

view full story

http://www.linuxquestions.org – Hello. I am trying to use rsync in order to create a mirror of the contents of a remote disk. I know how to do it, but here is the problem: the disk contains several directories, each of which has the exact same contents, except for a subdirectory. For example Directory Onefile 1 file 2 file 3 subdir 1 subdir 2 file 4 ...Directory Twofile 5 file 6 file 7 subdir 3 subdir 2 file 8 ...I am interested in mirroring the contents of "subdir 2", and not the contents of any other file or dir that may (or may not) be inside "Directory One" and "Directory Two". I've already tried several ideas for including (or excluding) names in my rsync command, but nothing i can think of seems to be working properly. I would appreciate any help. Panos (HowTos)