title: Cannot get rsync exclude option to exclude dir
body: <p>Having an issues with rsync. I'm using rsync as a glorified cp command. I have in a script the following code.</p>
  
  <blockquote>
    <p><code>rsync -aL --exclude /path/to/exclude/ --exclude='.*' /source/ /destination</code></p>
  </blockquote>
  
  <p>I can get the rsync to exclude any hidden files. Hence the <code>'.*'</code>  I cannot get the exclude dir to exclude. I've tried using an <code>'='</code> sign, surrounding the dir with double quotes, with single quotes.  Any help would be greatly appreciated. Thanks in advance.</p>