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 To: cygwin AT cygwin DOT 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 DOT post AT talk DOT nabble DOT com> <496C4011 DOT 6020003 AT cygwin DOT com> <21430861 DOT post AT talk DOT nabble DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/