Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Tom Veitch on September 05, 2002, 03:35:08 AM

Title: Rsync ibays
Post by: Tom Veitch on September 05, 2002, 03:35:08 AM
Can you have two SME servers Synchronise an ibay over the internet
Title: Re: Rsync ibays
Post by: Dan G. 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