www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/13/23:09:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.5 required=5.0 tests=AWL,BAYES_00,DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG
X-Spam-Check-By: sourceware.org
Message-ID: <21449672.post@talk.nabble.com>
Date: Tue, 13 Jan 2009 20:08:59 -0800 (PST)
From: jedalaurin <neonflux386 AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: file mirroring
In-Reply-To: <gkinf4$4f7$1@ger.gmane.org>
MIME-Version: 1.0
References: <21430068 DOT post AT talk DOT nabble DOT com> <496C4011 DOT 6020003 AT cygwin DOT com> <21430861 DOT post AT talk DOT nabble DOT com> <gkinf4$4f7$1 AT ger DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com



Thorsten Kampe wrote:
> 
> * jedalaurin (Mon, 12 Jan 2009 23:48:51 -0800 (PST))
>> rsync: connection unexpectedly closed (0 bytes received so far) 
> [receiver]
>> rsync error: error in rsync protocol data stream (code 12) at
>> /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
>> [receiver=3.0.4]
>> 
>> after running 
>> 
>> rsync -avz --delete --exclude=**/stats --exclude=**/error
>> --exclude=**/files/pictures -e "ssh -i /root/rsync/mirror-rsync-key"
>> someuser AT server1 DOT example DOT com:/var/www/ /var/www/
> 
> Keep it simple, stupid: try without the excludes; if this doesn't work, 
> try with ssh.
>  
>> our mirror server is using windows 2003 r3 on cygwin 2.573.2.3 and out
>> main
>> server is on Red Hat.
>> 
>> Another question is there another way(s) to do the file synchronization
>> on
>> this setup?
> 
> sitecopy
> 
> Thorsten
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 
> 

I after few hours of tracing the file mirroring is already working. 
I found out that the error occurs when rsync encounters a unpermitted
folders, files etc. that it can't be transferred. All the options are still
needed [rsync -avz --delete --exclude=**/stats --exclude=**/error
--exclude=**/files/pictures -e "ssh -v -i /root/rsync/mirror-rsync-key"
someuser AT server1 DOT example DOT com:/var/www/ /var/www/] and adding a -v on ssh. 
that is why you have to assign a particular folder your files to be
mirrored.

Thank you guys and more power!
-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21449672.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019