docs:mac:builds:unison

This is an old revision of the document!


unison

  • first build ocaml
  • download unison source from http://www.cis.upenn.edu/~bcpierce/unison/
  • extract and navigate to the root source folder
  • type these commands
    make UISTYLE=text
    sudo cp unison /usr/local/bin/
  • preference/configuration file will be saved at ~/Library/Application\ Support/Unison/default.prf

:!: Notice the // double slashes on both sides of the ssh hostname

By the time you copy files and start to run a unison command you realize that it doesn't know about anything you did yet. It will bother you with questions about the props (properties) of each and every file, unless you run this once (WARNING - make sure you have both directories in sync first because you will be forcing one):

unison /local/path ssh://hostname//remote/path -force /local/path -batch

The force switch tells unison which version you want to use, and the batch switch means to ask no questions.

:!: Notice the // double slashes on both sides of the ssh hostname sync.sh

#!/bin/bash
 
unison /local/path ssh://hostname//remote/path
  • docs/mac/builds/unison.1293079999.txt.gz
  • Last modified: 2010/12/22 21:53
  • by billh