I have a large directory tree with lot of files like;
/abc2/def/thumbnail.jpg
/abc1/def/thumbnail.jpg
/abc1/def/geh/someothertextfile.txt
/abc1/defe/geh/thumbnail.jpg
I would like to rsync all those directories and files that match thumbnail.jpg to another tree.
I tried;
rsync -r --exclude-from=/tmp/exclude src dst
with exclude file containing;
# cat /tmp/exclude
+ /thumbnail.jpg
+ thumbnail.jpg
+ /**/thumbnail.jpg
+ **/thumbnail.jpg
- *
but this does not match any.