Synching files using rsync utility | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Synching files using rsync utility

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-09-2012
Kesavan's Avatar
Kesavan Kesavan is offline
Registered User
 
Join Date: Aug 2010
Last Activity: 24 August 2014, 8:08 PM EDT
Location: TamilNadu,India
Posts: 56
Thanks: 5
Thanked 1 Time in 1 Post
Linux Synching files using rsync utility

Iam using rsync tool to sync files from one linux server to other linux server, however it takes huge time to finish it. so I tried running multiple instances of rsync for different directories in background and it resulted in the below mentioned error.

rsync comand used:

/usr/bin/rsync -acrz ${ABS_DIR} -e /usr/bin/rsh ${TARGET}:${TARGET_DIR} &

the below error was thrown,

poll: protocol failure in circuit setup
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]


Please let me know whether is it possible to run multiple instances from one server to another server and if it is possible, please guide me...

Thanks

The network connections are fine...

Last edited by Kesavan; 11-09-2012 at 12:50 AM.. Reason: provided some more details
Sponsored Links
    #2  
Old 11-09-2012
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 20 October 2014, 6:07 PM EDT
Location: NM
Posts: 10,240
Thanks: 281
Thanked 802 Times in 746 Posts
What does the rsyncd.conf file have for max connections?

What does syslog say about errors on the remote side?
Sponsored Links
    #3  
Old 11-19-2012
Kesavan's Avatar
Kesavan Kesavan is offline
Registered User
 
Join Date: Aug 2010
Last Activity: 24 August 2014, 8:08 PM EDT
Location: TamilNadu,India
Posts: 56
Thanks: 5
Thanked 1 Time in 1 Post
There is no rsyncd.conf file, as per my understanding it is needed only when you are running rsync as a daemon (let me know if Iam wrong)

This is what the syslog shows

Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11703 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11703 duration=0(sec)
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11705 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11706 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11707 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11708 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11710 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11713 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11714 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11715 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11716 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11717 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: FAIL: shell per_source_limit from=192.168.10.3
Nov 20 09:34:33 H00HOST last message repeated 10 times
Nov 20 09:34:33 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11707 duration=0(sec)
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11739 from=192.168.10.3
Nov 20 09:34:33 H00HOST xinetd[2404]: FAIL: shell per_source_limit from=192.168.10.3
Nov 20 09:34:33 H00HOST last message repeated 9 times
Nov 20 09:34:33 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11713 duration=0(sec)
Nov 20 09:34:33 H00HOST xinetd[2404]: START: shell pid=11752 from=192.168.10.3
Nov 20 09:34:34 H00HOST xinetd[2404]: FAIL: shell per_source_limit from=192.168.10.3
Nov 20 09:34:34 H00HOST last message repeated 3 times
Nov 20 09:34:34 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11708 duration=1(sec)
Nov 20 09:34:34 H00HOST xinetd[2404]: START: shell pid=11759 from=192.168.10.3
Nov 20 09:34:34 H00HOST xinetd[2404]: FAIL: shell per_source_limit from=192.168.10.3
Nov 20 09:34:34 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11716 duration=1(sec)
Nov 20 09:34:34 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11752 duration=1(sec)
Nov 20 09:34:35 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11714 duration=2(sec)
Nov 20 09:34:35 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11705 duration=2(sec)
Nov 20 09:34:36 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11759 duration=2(sec)
Nov 20 09:34:36 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11715 duration=3(sec)
Nov 20 09:34:36 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11739 duration=3(sec)
Nov 20 09:34:44 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11710 duration=11(sec)
Nov 20 09:34:44 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11717 duration=11(sec)
Nov 20 09:34:44 H00HOST xinetd[2404]: EXIT: shell status=0 pid=11706 duration=11(sec)


This is what the error shown in the screen


poll: protocol failure in circuit setup
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
poll: protocol failure in circuit setup
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
poll: protocol failure in circuit setup
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
poll: protocol failure in circuit setup
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
poll: protocol failure in circuit setup
poll: protocol failure in circuit setup
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Rsync not deleting files on destination gmccarthy Shell Programming and Scripting 0 07-12-2012 03:54 PM
rsync copy files once duonut Shell Programming and Scripting 4 10-13-2011 04:00 PM
Rsync temporary files LostInTheWoods Shell Programming and Scripting 0 02-21-2011 03:56 AM
How to Unzip a file using unzip utility for files zipped without zip utility ? Sabari Nath S Shell Programming and Scripting 1 12-11-2009 05:18 PM
rsync, which files where moved? JCR UNIX for Dummies Questions & Answers 5 02-11-2008 01:04 PM



All times are GMT -4. The time now is 04:42 AM.