Let's say I have a server where I'd like to keep my central Unison repository, and I have two machines with directories Documents
and .config
on each. I'd like to synchronise Documents
and .config
to server but only Documents
should be synchronised between both client machines. So there should be three directories on the server,
Documents
, .config_machine1
, .config_machine2
, where Documents
is common between the two client machines, and each .config
is specific two each client machine. Is this possible with unison?
You could run two different Unison profiles on each machine. So on your server, you would have your files look something like
Unison
\_Common
| \_Documents
\_Machine1
| \_.config
\_Machine2
\_.config
and then on each machine you would have two different Unison profiles, common.prf
to sync the Documents folder, and specific.prf
to sync that machine's .config
folder.