I need to sync 3 computers between each other in same way as Dropbox does e.g. if file changed on one pc others reflect this change as well. So i have choosen Unison. And found that it works perfect for 2 computers and how about 3 or more ? I tried to specify 3 roots in confg file but it does not work in such way and expects only 2 roots. After few searches found this statement:
Using Unison to Synchronize More Than Two Machines Unison is designed for synchronizing pairs of replicas. However, it is possible to use it to keep larger groups of machines in sync by performing multiple pairwise synchronizations.
If you need to do this, the most reliable way to set things up is to organize the machines into a “star topology,” with one machine designated as the “hub” and the rest as “spokes,” and with each spoke machine synchronizing only with the hub. The big advantage of the star topology is that it eliminates the possibility of confusing “spurious conflicts” arising from the fact that a separate archive is maintained by Unison for every pair of hosts that it synchronizes.
But i didn't find any working example where more than 3 pcs making syncing. Below sample config which produce error once run - "Fatal error: Wrong number of roots: 2 expected, but 3 provided"
# Roots of the synchronization root = /home/dem/testsync/ root = ssh://email@example.com//home/pc1/testsync/ root = ssh://firstname.lastname@example.org//home/pc2/testsync/ auto=true batch=true confirmbigdel=true fastcheck=true prefer=newer times=true