title: Simple RSync EXCLUDE option?
body: <p>I want a simple and working (multiple) <code>exclude</code> option inside my <code>rsync</code> command. Lets say i will exclude <code>a file</code> and <code>a directory</code>:</p>
  
  <ul>
  <li>/var/www/html/test.txt</li>
  <li>/var/www/html/images/</li>
  </ul>
  
  <p>What i did is:</p>
  
  <p><code>rsync -avz --exclude="/var/www/html/test.txt" --exclude="/var/www/html/images/" /var/www/html root@xx.xx.xx.xx:/var/www</code></p>
  
  <p>or</p>
  
  <p><code>rsync -avz --exclude=/var/www/html/test.txt --exclude=/var/www/html/images/ /var/www/html root@xx.xx.xx.xx:/var/www</code></p>
  
  <p>or</p>
  
  <p><code>rsync -avz --exclude /var/www/html/test.txt --exclude /var/www/html/images/ /var/www/html root@xx.xx.xx.xx:/var/www</code></p>
  
  <p>..</p>
  
  <p>But however, the <code>--exclude</code> is NOT WORKING!<br />
  Everything is going out!</p>
  
  <ul>
  <li>How to do it in this simple format please? </li>
  </ul>
  
  <p><em>Note: I also don't want to use external exclusion list file. Just want all in one simple command.</em></p>