1st you need to set up passwordless logins:
1) login as USER on the client (where you want to connect from)
2) ssh-keygen -t dsa
(don't suppy a passphrase now - you can do that later once the first bit works)
3) scp /home/USER/.ssh/id_dsa.pub REMOTEHOST:/home/USER/.ssh/authorized_keys2
(you will need to enter your password this one time)
4) ssh REMOTEHOST
Then create a crontab entry that runs the command:
Code:
rsync -e ssh -arz --delete /local/path/ user@other.server:/remote/path/