Koozali.org: home of the SME Server

Rsync ibays

Tom Veitch

Rsync ibays
« on: September 05, 2002, 03:35:08 AM »
Can you have two SME servers Synchronise an ibay over the internet

Dan G.

Re: Rsync ibays
« Reply #1 on: September 05, 2002, 05:59:19 AM »
Absolutely.  As long as SSH can go thru the firewall, you can:

1.  Set up rsa keys using ssh-keygen.
2.  Copy the public key to the remote host's /root/.ssh/authorized_keys file.
3.  Setup a cron job to run the rsync command.  I use:

rsync -auv --delete -e "ssh -1" root@remoteHostIP:/path/to/remote/ibay/ /path/to local/ target/directory