Avoiding tar's (or any other commandline's) argument list too long error
# generate the file list find -iname '*.ext' > fileList.txt #run tar passing it the file list tar czvf archive.tar.gz --files-from fileList.txt # a shorthand of this would be: find . -name '*.ext' -print | tar -cvzf archive.tar.gz --files-from -