Instruction need on how to use Rsync

I have both server install with rsync.

I'm trying to backup data from server1 to server2.

In server1, we did a commands like the following:
rsync -avzr /home/sites/www.mysite.com/web/* username@otherserver:/home/sites/www.mysite.com/web

However, i got some error in return.
xx.xxx.xxx : Connection refused
unexpected EOF in read_timeout


i guess it need a password to enter server2. Where should i put the password?

Hope some guys who is experience in using rsync suggest a solution? Thanks.

 

 

 

 

Top