PDA

View Full Version : [ubuntu] Command Line to kick off Unison



Quarkrad
October 16th, 2008, 07:58 AM
Can anybody point me in the right direction to work out what the command line is that I put into Scheduled Tasks in order to kick off some folder sync'ing via Unison? I have set up some profiles in Unison to carry some local and they work if I go into Unison and manual Run them. I understand I can do this automatically through Scheduled Tasks. It looks straight forward to set up a Schedule but when it comes to the command line it appears to me you either know it or how to work it out. For a newbi I feel lost in a black hole not knowing where to go. Appreciate any starter for 10.

rwigle
January 21st, 2009, 03:32 PM
I am trying to sort something very similar out as well.

I have a working profile that works fine from the command line with


unison -batch

I use gnome-schedule, and have two events set up:

1. (command line above) at reboot
2. (command line above) every hour

If I use "execute task" in gnome-schedule, they work fine, but they don't seem to work otherwise. (???)

My default profile includes a root via ssh, and this seems to be the problem. I have rsa authentication working fine, and Unison is installed on both machines (Ubuntu Hardy 8.04)

Thanks in advance for suggestions.

dm_research
February 11th, 2010, 12:51 PM
The following link might be helpful, at least in relation to running unison from the command line:

http://www.stanford.edu/~pgbovine/unison_guide.htm

It also has some advice about how to run unison with a scheduler.