please help in rsync


 
Thread Tools Search this Thread
Operating Systems Solaris please help in rsync
# 1  
Old 05-12-2008
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

Code:
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

Last edited by Yogesh Sawant; 12-10-2010 at 05:14 AM.. Reason: added code tags
# 2  
Old 05-12-2008
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.
# 3  
Old 05-12-2008
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

Code:
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

Last edited by Yogesh Sawant; 12-10-2010 at 05:14 AM.. Reason: added code tags
# 4  
Old 05-12-2008
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.
# 5  
Old 05-13-2008
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
# 6  
Old 05-13-2008
Quote:
Originally Posted by naree
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.
# 7  
Old 05-13-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. UNIX for Dummies Questions & Answers

rsync

Hi all, I'm new to the rsync world in hpux. Currently I have rsync going through the main public lan, but dude to traffic loads, I have been told that i need to use a dedicated rsync lan. I currently have 4 spare nics and the plan was to use one of these for the rsync, but I can't figure out... (2 Replies)
Discussion started by: linuxwanabe
2 Replies

3. SuSE

rsync

I'm trying to use rsync to sync some data from my windows laptop to my linux openSUSE home sytem using cwRsync. The process has always worked until I got a new laptop and more or less at the same time decided to rebuild my linux box. on linux rsync --version rsync version 3.0.7 protocol... (2 Replies)
Discussion started by: giessenw
2 Replies

4. Shell Programming and Scripting

rsync

Am I correct in assuming that the following command: rsync -a /a /b does not make any changes on /a if there are files on /b that are newer (2 Replies)
Discussion started by: jgt
2 Replies

5. Shell Programming and Scripting

rsync

hi there I wonder if some-one can help. I am trying to use rsync on my mac to transfer a folder to a remote machine. I have logged into rysnc on my mac no problem and I'm trying to execute this command: rsync -a -e ssh /Users/myname/myfolder/sourcefolder/... (3 Replies)
Discussion started by: volterony
3 Replies

6. UNIX for Dummies Questions & Answers

rsync

i last night i copied a 400GB folder using rsync and ssh i did: rsync -r /mnt/500_GB ssh miguel@192.168.1.3:/mnt/1500_GB and it copied the folder fine all 400GB. The question is: If i put more files to that initial 400GB folder, which command can i run on my server for it to update the... (4 Replies)
Discussion started by: supermiguel
4 Replies

7. UNIX for Dummies Questions & Answers

rsync vs cp

Hi guys, I will be copying data from one FS to another. (only once) These are local Filesystems... Which tool would be more efficient to use in this case? There is a huge amount of data that needs to be copied... (1.5TB) John (1 Reply)
Discussion started by: jsy
1 Replies

8. UNIX for Advanced & Expert Users

Rsync

I have to update my files to 2-4 servers and I tar all the files and ftp to every server. I have heard about Rsync, but are there any other ways that are the same as Rsync?> (1 Reply)
Discussion started by: darknite87
1 Replies

9. UNIX for Dummies Questions & Answers

rsync

I want to do rsync only for the difference in the last 30 days. How do I specify the "30 days" on the command line below? >rsync -avz prj# /rsource /destination Thanks for help (6 Replies)
Discussion started by: wz253
6 Replies
Login or Register to Ask a Question