title: Exclude directories from tar with .tarignore file (#2)
body: <p>This is a bit of a repeat post based on <a href="https://stackoverflow.com/questions/39514510/exclude-directories-from-tar-archive-with-a-tarignore-file">this post of a similar name</a></p>
  <p>I cannot get this method to work so I'm trying to figure out if I'm doing something wrong or if this just doesn't work.</p>
  <p>I created <code>.tarignore</code> in my <code>~</code> home directory</p>
  <p>Inside <code>.tarignore</code> I've tried a variety of things, this is the current attempt:</p>
  <pre><code>dirname/
  dirname/*
  /home/ubuntu/dirname/
  /home/ubuntu/dirname/*
  *.js
  </code></pre>
  <p>Then I run this command from the <code>~</code> home dir</p>
  <p><code>tar -zcvf cur.tar.gz /home/ubuntu/dirname --exclude-ignore-recursive=.tarignore</code></p>
  <p>I believe that this should result in absolutely nothing getting tar'd yet the verbose output is showing me that files in <code>dirname/</code> are being tar'd as are <code>.js</code> files.</p>
  <p>Been stuck on this for a bit, hoping I'm just doing something silly :/</p>
  <p>Edit: I'm running this on Ubuntu 18.04</p>