#! /bin/bash # Some useful optional switches: # -silent When running from cron to suppress normal output # -batch=false To manually resolve conflicts # -debug=all For lots of debug output # This script relies on another tool, and is routinely run from # a cron job, with a sketchy env! Be sure we can locate things: specialhome=/home/dino withmount="${specialhome}/dev/scripts/withmount.hs" #flock -n "${specialhome}/var/run/lock/unison.lock" unison $* -ui text cloud # Having problems with idiot Unison and idiot OCaml. Version incompatibility between what's on Arch Linux and what's on Debian. Falling back to mounting the remote storage locally so it's ONE copy of Unison doing everything $withmount /media/cloud flock -n "${specialhome}/var/run/lock/unison-cloud.lock" unison $* -ui text cloud