How to sync only one file type with Unison?

Solution 1:

You need to add the following lines to your profile:

ignore = Name ?*
ignorenot = Name *.jpg