title: Rsync copy directory contents but not directory itself
body: <p>I'm trying to synchronize two contents of folders with different name:</p>
  
  <pre><code>rsync -av ~/foo user@remote.com:/var/www/bar
  </code></pre>
  
  <p>I'd like to copy the content of <code>foo</code> into <code>bar</code> at remote host, but not the directory <code>foo</code> itself. I've tried something like <code>foo/*</code>, but rsync doesn't support that.</p>
  
  <p>rsync always creates </p>
  
  <pre><code>/var/www/bar/foo
  </code></pre>