2010/08/17

Unison ignorenot example


You are here because you want Unison file synchronizer to ignore something except for something else. Example: you want the synchronizer to ignore everything inside a folder whose path is Documents except for a private folder inside Documents.

First, open up your sync profile in Unison GUI and add an ignore variable with value equal to "Path {Documents/*}".

Then add an ignorenot variable with value equal to "Path {Documents/Private}".

That's it. Was not so hard isn't it. Unison's manpage should have straight forward examples like this.