title: How do I change the save location of my tar ball?
body: <p><strong>Good-day,</strong></p>
  
  <p>Can someone please tell me how to save my tar ball to another location other than the default directory?  I'm running a tar command as root therefore the archive is being saved in <strong>/root</strong> by default.  I'd like to save the file in an attached hard drive mounted at <strong>/mnt/shares</strong>.  Here's what I've tried so far with the respective responses from the system:</p>
  
  <pre><code>tar -C /mnt/shares/flexshares/backup/Server1_HDD -cpzf backup-HDD-`date +%Y-%m-%d-%H-%M`.tar.gz --exclude=/mnt --exclude=/var/flexshare/shares /media
  
  tar --directory=/mnt/shares/flexshares/backup/Server1_HDD -cpzf backup-HDD-`date +%Y-%m-%d-%H-%M`.tar.gz --exclude=/mnt --exclude=/var/flexshare/shares /media
  </code></pre>
  
  <p>The above two attempts both create the archive but still save it in the default directory: <strong>/root</strong></p>
  
  <pre><code>tar /mnt/shares/flexshares/backup/Server1_HDD -cpzf backup-HDD-`date +%Y-%m-%d-%H-%M`.tar.gz --exclude=/mnt --exclude=/var/flexshare/shares /media
  </code></pre>
  
  <p>The above doesn't work and generates this error message:  <em>tar: invalid option -- /
  Try <code>tar --help' or</code>tar --usage' for more information.</em></p>
  
  <p>I'd like to be able to save the archive directly to <strong>/mnt/shares/flexshares/backup/Server1_HDD</strong>.  Any ideas on how I can accomplish this?</p>
  
  <p>v/r</p>
  
  <p>Kismet</p>