Ubuntu – sync a directory between OSX and Ubuntu

mac-osxrsyncsynchronizationUbuntuunison

I need a good way to sync a directory between my OSX 10.6 laptop and my Ubuntu Desktop. Dropbox would obviously be a great choice, however the directory I need to sync is owned by root on both machines and fixing the permissions would screw up the situation I have going. I was considering just writing my own script using rsync (which would indeed be fun) but I'm wondering if perhaps there is something a bit more robust out there. I've heard of Unison, but I don't know very much about it. Would that be a good option for me, or can you come up with something better? Thanks!

Best Answer

two easy answers, (and the same you've already mentioned):

  1. Unison if you want something that 'just works'. Has a nice GUI and you can easily define a task there and call from command line, a script, cron, whatever. I use it to synchronize both my laptop and my wife's with our respective user directories on the desktop. It's really that easy.

  2. rsync if you want to control (almost) every aspect. There's lots of arguments that let you respect, modify or clobber permissions, onwers by number or by name, etc. In fact, there's seldom any need for a complete script; usually you only have to find (by trial and error) the best combination of arguments.

Related Topic