Skip to content

Instantly share code, notes, and snippets.

@fapestniegd
Created July 26, 2009 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fapestniegd/155389 to your computer and use it in GitHub Desktop.
Save fapestniegd/155389 to your computer and use it in GitHub Desktop.
# freyr <-> thor 00, 30
# freyr <-> odin 15, 45
# thor <-> odin 05, 35
# thor <-> freyr 20, 50
# odin <-> freyr 10, 40
# odin <-> thor 25, 55
00,30 * * * * [ "$(/bin/hostname -f)" == "freyr.websages.com" ] && /usr/bin/unison /opt/auto ssh://thor.websages.com//opt/auto -batch >> /var/log/unison.log
05,35 * * * * [ "$(/bin/hostname -f)" == "thor.websages.com" ] && /usr/bin/unison /opt/auto ssh://odin.websages.com//opt/auto -batch >> /var/log/unison.log
10,40 * * * * [ "$(/bin/hostname -f)" == "odin.websages.com" ] && /usr/bin/unison /opt/auto ssh://freyr.websages.com//opt/auto -batch >> /var/log/unison.log
15,45 * * * * [ "$(/bin/hostname -f)" == "freyr.websages.com" ] && /usr/bin/unison /opt/auto ssh://odin.websages.com//opt/auto -batch >> /var/log/unison.log
20,50 * * * * [ "$(/bin/hostname -f)" == "thor.websages.com" ] && /usr/bin/unison /opt/auto ssh://freyr.websages.com//opt/auto -batch >> /var/log/unison.log
25,55 * * * * [ "$(/bin/hostname -f)" == "odin.websages.com" ] && /usr/bin/unison /opt/auto ssh://thor.websages.com//opt/auto -batch >> /var/log/unison.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment