From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30338 invoked by alias); 14 Jan 2009 04:09:32 -0000 Received: (qmail 30325 invoked by uid 22791); 14 Jan 2009 04:09:32 -0000 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 Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jan 2009 04:09:01 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LMx3r-0003dz-Hh for cygwin@cygwin.com; Tue, 13 Jan 2009 20:08:59 -0800 Message-ID: <21449672.post@talk.nabble.com> Date: Wed, 14 Jan 2009 10:07:00 -0000 From: jedalaurin To: cygwin@cygwin.com Subject: Re: file mirroring In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <21430068.post@talk.nabble.com> <496C4011.6020003@cygwin.com> <21430861.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00416.txt.bz2 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@server1.example.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@server1.example.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/