title: tar/gzip excluding certain files
body: <p>I have a directory with many sub-directories. In some of those sub-directories I have files with <code>*.asc</code> extension and some with <code>*.xdr</code>. </p>
  
  <p>I want to create a SINGLE tarball/gzip file which maintains the directory structure but excludes all files with the <code>*.xdr</code> extension. </p>
  
  <p>How can I do this? </p>
  
  <p>I did something like <code>find . -depth -name *.asc -exec gzip -r9 {} +</code> but this gzips every <code>*.asc</code> file individually which is not what I want to do.</p>