I have a tree of subdirs, some of which contain a file with the word "template" as part of the name. I want to rsync them to the same subdir tree in a different location.
This command didn't work; it put all the files in the base destfolder, rather than in the correct subdirectories:
rsync -av curfolder/*/*/*template* destfolder
So I think I need a filter something like this, but this isn't working (it seems to just sync everything):
rsync -av -f"+ *template*" curfolder destfolder