title: Cron Perl File Gzip Backup
body: <p>I'm trying to make a small change to a website which I'm working on. (I can design great looking sites but tech stuff is a little over me so simple answers please...) I didn't create this perl file but want to edit it.</p>
  
  <p>The site has a cron script running daily to back up a db. The cron seems to run a perl file with the command like this (edited) : </p>
  
  <pre><code>exec "/usr/bin/mysqldump --opt -uxxx -pxxx dbname |gzip &gt; /var/www/db/y$dt.gz";
  </code></pre>
  
  <p>($dt being a date string created earlier)</p>
  
  <p>It works so I don't want to mess with that. </p>
  
  <p>I want to add a line which will gzip backup all the files in a certain folder using the same date technique. I'm guessing :</p>
  
  <pre><code>exec "gzip /path/to/image/folder &gt; /var/www/db/f$dt.gz";
  </code></pre>
  
  <p>would work but I don't want to get this wrong.</p>
  
  <p>Suggestions ?</p>