delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/13/08:06:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Date: Tue, 13 Jan 2009 14:11:43 +0100
From: tomas AT tuxteam DOT de
To: cygwin AT cygwin DOT com
Subject: Re: file mirroring
Message-ID: <20090113131143.GA28581@tomas>
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>
MIME-Version: 1.0
In-Reply-To: <21430861.post@talk.nabble.com>
User-Agent: Mutt/1.5.15+20070412 (2007-04-11)
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Jan 12, 2009 at 11:48:51PM -0800, jedalaurin wrote:

[...]

> 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/

As Larry said, this probably isn't Cygwin-specific. Rsync can be also
had as a pure Windows app, AFAIK.

> our mirror server is using windows 2003 r3 on cygwin 2.573.2.3 and out main
> server is on Red Hat.

What machine are you invoking rsync on? (let's call it "B"). The "other"
machine (let's call it "A") should have an SSH server running (since you
are using SSH as the rsync "transport", as the option -e "ssh..." says).
Can you ssh from B to A? What happens if you invoke

  ssh -i /root/rsync/mirror-rsync-key someuser AT server1 DOT example DOT com:/var/www/ /var/www/

(My crystal ball tells me that B is the Redhat box, just based on the path
/root/blah, but that's just a hunch. This seems to be the hard way,
since it seems to be more work to set up a ssh server on a Windows box).

> Another question is there another way(s) to do the file synchronization on
> this setup?

Rsync is very nice and light on resources. Maybe you can skip the need
to have Cygwin using PuTTY as the SSH client on the windows box
(provided you rsync "from" the Windows box "to" the Redhat one). I don't
know what is needed to set up an SSH server on Windows (other than the
Cygwin one, that is) if you want to do it the other way 'round.

HTH
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJbJMPBcgs9XrR2kYRAvqcAKCCTaMzvXKdVn8o83LM/I+IPpCBtACfVle5
e89wcK/3eV7TFrL5wHarV9Q=
=whxm
-----END PGP SIGNATURE-----

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