title: How do I use unison to synchronize only dotfiles and dotfolders?
body: <p>I would like to synchronize only files and folders that start with a dot in my home folder.</p>
  
  <p>More specifically, I only want to synchronize the files and folders listed by:</p>
  
  <pre><code>ls -ld ~/.[^.]*
  </code></pre>
  
  <p>Unison command line I tried:</p>
  
  <pre><code>unison /home/username /backup/dotfiles -ui text -perms 0 -ignorenot 'Regex .[!.]*' -ignore 'Regex *[!.]'
  </code></pre>
  
  <p>gives the error: </p>
  
  <pre><code>Malformed pattern "Regex *[!.]".
  </code></pre>
  
  <p>This is a simplified example, and it would be reasonable to do this with rsync instead, but I would like to use unison because in my real use case I need bidirectional sync.</p>