rsync -avzm -e ssh /path/to/src/folder/ /path/to/dest/folder
--include=*/ --include=*/config.xml --exclude=*
I need to copy files(say config.xml) that are in the 2nd level directories using rsync. I am currently using the above script and its copying config.xml's from all directory levels.
What changes should I make in the above command?