Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.