title: Excluding dot files for s3cmd sync
body: <p>How can I exclude all dot files in my home directory as well as those dot files in all sub-directories?</p>
  
  <p>I've tried adding the following expression in my exclude file, but for some reason it does not work:</p>
  
  <pre><code>(^|/)\.[^/]*(/|$)
  </code></pre>
  
  <p>Also, the following doesn't work either:</p>
  
  <pre><code>.*
  .*/**
  </code></pre>