The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
rsync vs cp jsy UNIX for Dummies Questions & Answers 1 03-24-2008 12:51 PM
rsync over ftp Hitori UNIX for Advanced & Expert Users 2 03-14-2008 09:42 AM
rsync in ftp Euler04 Shell Programming and Scripting 5 10-24-2005 04:17 AM
Rsync darknite87 UNIX for Advanced & Expert Users 1 06-06-2002 12:37 PM
rsync wz253 UNIX for Dummies Questions & Answers 6 09-04-2001 03:44 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: Feb 2008
Posts: 70
please help in rsync

Dear all,
I m trying to rsync a file remotely but it is throwing following error.

#/opt/sfw/bin/rsync -v -a -e ssh user@xx.xx.xx.xx:/export/home/naresh/utils.sh

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)

Please help me

Thanks & Regards
Naree
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: Dec 2006
Posts: 42
Hi,

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

Manpage of rsync

Thanks.
Reply With Quote
  #3 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: Feb 2008
Posts: 70
Please help me rsync

Dear J,
Please help me how to add rsync entry in /etc/services. and /etc/rsyncd.conf what shud enter in this file please help me.

I have telnet to local host and port no 873 is showing following error

Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: Unable to connect to remote host: Network is unreachable

Thanks & Regards

Naree
Reply With Quote
  #4 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: Dec 2006
Posts: 42
In /etc/services
# Rsync port
rsync 873/tcp

In /etc/inetd.conf
#Rsync Daemon
rsync stream tcp nowait root /[location]/rsync rsync --daemon

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.

Thanks.
Reply With Quote
  #5 (permalink)  
Old 05-13-2008
Registered User
 

Join Date: Feb 2008
Posts: 70
Need more in rsync

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

And trying run rsync utility as

#/opt/sfw/bin/rsync -v -a -e ssh user@xx.xx.xx.xx:/export/home/naresh/utils.sh utils.sh

But our Bad luck it is throwing same error

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.

Thanks & Regards
Naree
Reply With Quote
  #6 (permalink)  
Old 05-13-2008
Registered User
 

Join Date: Apr 2008
Posts: 12
Quote:
Originally Posted by naree View Post
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

And trying run rsync utility as

#/opt/sfw/bin/rsync -v -a -e ssh user@xx.xx.xx.xx:/export/home/naresh/utils.sh utils.sh

But our Bad luck it is throwing same error

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.

Thanks & Regards
Naree
Do you need the --rsync-path=PATH in the command line? It appears that it cant see rsync on the remote machine.
Reply With Quote
  #7 (permalink)  
Old 05-13-2008
Registered User
 

Join Date: Dec 2006
Posts: 42
Hi,

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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0