[Ilugc] rsync Help

  • From: vinothv@xxxxxxxxx (Vinoth Kumar)
  • Date: Sat Sep 11 02:41:33 2004

rsync between two machines requires a user/password authentication.
You could use " -e ssh" option to use ssh for the authentication.

eg: rsync -cvr -e ssh user1@xxxxxxx:/remote_base/directory1/all.txt
/local_bas ./local_bas

This would prompt for password for user1 on x.y.com host.  If you plan
to automate the rsync (which is the ideal) you have to exchange the
ssh (rsa) keys for the two machines.

check this link for a neat 'howto' to that.

http://www.cs.umd.edu/~arun/misc/ssh.html

once u configure a passwordless login (dont let this term mislead u,
its very secure), you can add the rsync in crontab.

hope this helps. 

cheers
vinoth
--
???? ????? ??????? ????? 
?????????? ???? ???????????
( ??????????? )


On Thu, 9 Sep 2004 10:05:43 -0500 (CDT), carti <carti@xxxxxxxxxxxxxx> wrote:

Hi,
I want to use rsync for my backup works between
two hosts(in same network or different networks).

1. Do, I need to have rsync on both the machines.?
2. Should one of the machine should run in daemon mode.
    (for any backup tasks)?

When I tried rsync, (rsync  version 2.5.7  protocol version 26)

mymachine:/usr/local/bin > rsync --verbose 
user1@xxxxxxx:/remote_base/directory1/all.txt /local_base

I got the following error

remshd: Login incorrect.
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)

could you tell the solution or why the error occured.

Thanks and regards,
carti
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> address"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Other related posts: