title: Tar: create archive exclude directories except one
body: <p>I have some directories with some files</p>
  
  <pre><code>dir_archive/somedir1
  dir_archive/somedir2
  dir_archive/somedir3
  dir_archive/mydir
  dir_archive/mydir/excludedir1
  dir_archive/mydir/excludedir2
  dir_archive/mydir/excludedir3
  dir_archive/mydir/many_other_directories...
  dir_archive/mydir/my_archive_dir
  </code></pre>
  
  <p>I want create tar(gz) archive dir_archive.tar.gz with all files and directories exclude  </p>
  
  <pre><code>dir_archive/mydir/excludedir1
  dir_archive/mydir/excludedir2
  dir_archive/mydir/excludedir3
  dir_archive/mydir/many_other_directories...
  </code></pre>
  
  <p>but include </p>
  
  <pre><code>dir_archive/mydir/my_archive_dir
  </code></pre>
  
  <p>I dont want use <code>--exclude</code> for each directory</p>
  
  <pre><code>tar cvfz dir_archive.tar.gz --exclude=dir_archive/mydir/excludedir1 --exclude=dir_archive/mydir/excludedir2 --exclude=dir_archive/mydir/excludedir3
  </code></pre>
  
  <p>I try use <code>--add-file</code>, but it doesn't work:</p>
  
  <pre><code>tar cvfz dir_archive.tar.gz --exclude=dir_archive/mydir --add-file=dir_archive/mydir/my_archive_dir dir_archive
  </code></pre>
  
  <p>Exists some simple way? Thanks</p>