title: how do I zip a whole folder tree in unix, but only certain files?
body: <p>I've been stuck on a little unix command line problem.</p>
  
  <p>I have a website folder (4gb) I need to grab a copy of, but just the .php, .html, .js and .css files (which is only a couple hundred kb). </p>
  
  <p>I'm thinking ideally, there is a way to zip or tar a whole folder but only grabbing certain file extensions, while retaining subfolder structures. Is this possible and if so, how?</p>
  
  <p>I did try doing a whole zip, then going through and excluding certain files but it seemed a bit excessive.</p>
  
  <p>I'm kinda new to unix.</p>
  
  <p>Any ideas would be greatly appreciated.</p>