I would like to synchronize only files and folders that start with a dot in my home folder.
More specifically, I only want to synchronize the files and folders listed by:
ls -ld ~/.[^.]*
Unison command line I tried:
unison /home/username /backup/dotfiles -ui text -perms 0 -ignorenot 'Regex .[!.]*' -ignore 'Regex *[!.]'
gives the error:
Malformed pattern "Regex *[!.]".
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.
The regex syntax you're looking for is
"^.[^.]*"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With