title: Excluding directory when creating a .tar.gz file
body: <p>I have a <code>/public_html/</code> folder, in that folder there's a <code>/tmp/</code> folder that has like 70gb of files I don't really need.</p>
  
  <p>Now I am trying to create a <code>.tar.gz</code> of <code>/public_html/</code> excluding <code>/tmp/</code></p>
  
  <p>This is the command I ran:</p>
  
  <pre><code>tar -pczf MyBackup.tar.gz /home/user/public_html/ --exclude "/home/user/public_html/tmp/" 
  </code></pre>
  
  <p>The tar is still being created, and by doing an <code>ls -sh</code> I can see that <code>MyBackup.tar.gz</code> already has about 30gb, and I know for sure that <code>/public_html/</code> without <code>/tmp/</code> doesn't have more than 1GB of files.</p>
  
  <p>What did I do wrong?</p>