What is the best way to archive select file extensions in an unknown tree. I cannot use exclude options in tar/gzip/rsync as it would be impossible to exclude all possible extension variations.
Example to backup all .foo and .bar files in a recursive tree but not other unknown file types.
I presume this will need to be a combination of ls/find, grep and tar/gzip.
Thank you