title: rsync recursively and exclude content of specific directory, not the directory
body: <p>I have a directory tree like this :</p>
  
  <pre><code>dir1/
     file11
     file12
     file13
     ...
     file1548216479524594
  dir2/
     file21
     file22
  dir3/
     dir31/
        file311
        file312
     dir32/
        file321
  </code></pre>
  
  <p>I would like to <code>rsync</code> entire directory tree but without content of directory dir1.</p>
  
  <p>If I use the basic <code>rsync</code> command :</p>
  
  <pre><code>rsync --progress -v -ar --delete --exclude="dir1/*" src/ dst/&lt;br&gt;
  </code></pre>
  
  <p>It works. But if I use -n to make a dry run before execute, it lasts very long because dir1 contains a lot file (I do not know why during the dry-run it lists all files, even those excluded).</p>
  
  <p>If I use <code>--exclude="dir1/"</code>, the dry-run is fast but I don't have my directory tree.</p>
  
  <p>How can I do a rsync dry run fast (avoiding recursively dir1 files which are very numerous.) with my entire directory tree excluding all content of dir1 ?</p>