title: Creating and Extracting a tgz archive in Rails
body: <p>Does anyone know how to archive a folder and its contained files as a tgz archive using Rails? What I would like todo is archive the contents of the folder and then have another script which extracts the same folder that was archived.</p>
  
  <p>All of the archiving techniques that I've come across are pretty complicated, I was wondering if there is a simple solution to what I am looking for.</p>