bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
I believe you need to configure /etc/rsyncd.conf and try telnet to localhost on 873 and see if it gets connected also add that in /etc/services. I used this link for help
In /etc/rsyncd.conf
[label name]
comment="test folder"
path=/var/tmp/test
max connections=2
log file=/var/adm/rsyncserverlog
uid=0
max verbosity=3
hosts allow=remote server
The same should be done on the destination in rsyncd.conf and make sure its running rsync too.
Dear Jartan,
As u suggested we have done entries in /etc/services. And in /etc/inetd.conf and checked whelther rsync is running and we noticed that it is running in both machines. And telnet localhost 873, it was able to telnet. Now we have given entires in /etc/rsyncd.conf as following
[label name]
comment="test folder"
path=/var/tmp/test
max connections=2
log file=/var/adm/rsyncserverlog
uid=0
max verbosity=3
hosts allow=xx.xx.xx.xx
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
Please help us in this Regard it is really urgent.
Did you gave the actual path where rsync resides in here
In /etc/inetd.conf #Rsync Daemon
rsync stream tcp nowait root /[location]/rsync rsync --daemon
Also make sure the file is executable and permissions are ok.
Dear Jartan,
I have checked entry in /etc/inetd.conf the entry is correct as u have told us. But even though it is throwing same Error. what would be the problem. Please Kndly help me
I think thats your only problem with you command is that the other machine haven't the rsync instaled or in the user PATH that you are using. Try to execute the rsync command from the machine that you want sync a file remotely.