Koozali.org: home of the SME Server

rsync between sme servers

Peter Werner

rsync between sme servers
« Reply #15 on: February 01, 2004, 11:49:04 PM »
hi guys

nice to see people are using this, unfortunately its starting to get very out of date.

it should work with any recent version of expect. if you're having trouble finding the dependencies, just try with whatever  version of expect you find.

i have no idea why it would be saying it has updated when it hasnt.

a howto is here
http://www.star-support.com/sme/Linux-HA/SME%20High%20Availability%20How-To.html

cheers
-pete
http://www.ifost.org.au/~peterw/

Mick

rsync between sme servers
« Reply #16 on: February 02, 2004, 02:25:38 PM »
And they say that the command line is hard! :-)

Really, setting up a cronjob to run rsync over non-interactive ssh is pretty straightforward, the tools are all already there, just a little typing required ...

Lets assume root is going to do this:

1. On Machine1 as root, run 'ssh-keygen -t rsa'
2. Accept default filename (id_rsa.pub) and DONT add a passphrase.
3. Copy the resulting public key (.ssh/id_rsa.pub) to root@machine2:/root/.ssh/authorized_keys by whatever means necessary.

That's about it really, you should now be able to login in to machine2 from machine 1 without a password using ssh

Then, something like this works for me run in a shell script as a cronjob:

rysync -e ssh -a --delete /source/dir destination/dir

Maybe check if you want those exact options (eg --delete), but that's all there is to it. Beats too much grief over RPMs and stuff.

loveless

this might help
« Reply #17 on: February 02, 2004, 10:22:52 PM »

Kevin

rsync between sme servers
« Reply #18 on: February 04, 2004, 09:58:21 PM »
Pay Stephen Noble $33.00(US) and you get a very elegant complete solution.

http://www.dungog.net/sme/products.php