public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* file mirroring
@ 2009-01-13  7:23 jedalaurin
  2009-01-13  7:29 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 14+ messages in thread
From: jedalaurin @ 2009-01-13  7:23 UTC (permalink / raw)
  To: cygwin


We are on implementation stage for a scalability and we a currently looking
for suggestion on file mirroring real time or near real time?

Thanks,

Jed
-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21430068.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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13  7:23 file mirroring jedalaurin
@ 2009-01-13  7:29 ` Larry Hall (Cygwin)
  2009-01-13  8:48   ` jedalaurin
  0 siblings, 1 reply; 14+ messages in thread
From: Larry Hall (Cygwin) @ 2009-01-13  7:29 UTC (permalink / raw)
  To: cygwin

jedalaurin wrote:
> We are on implementation stage for a scalability and we a currently looking
> for suggestion on file mirroring real time or near real time?

Please clarify how the above is a Cygwin-specific question.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13  7:29 ` Larry Hall (Cygwin)
@ 2009-01-13  8:48   ` jedalaurin
  2009-01-13 13:35     ` tomas
  2009-01-13 18:57     ` Thorsten Kampe
  0 siblings, 2 replies; 14+ messages in thread
From: jedalaurin @ 2009-01-13  8:48 UTC (permalink / raw)
  To: cygwin




Larry Hall (Cygwin) wrote:
> 
> jedalaurin wrote:
>> We are on implementation stage for a scalability and we a currently
>> looking
>> for suggestion on file mirroring real time or near real time?
> 
> Please clarify how the above is a Cygwin-specific question.
> 
> -- 
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
> 
> _____________________________________________________________________
> 
> A: Yes.
>  > Q: Are you sure?
>  >> A: Because it reverses the logical flow of conversation.
>  >>> Q: Why is top posting annoying in email?
> 
> --
> 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/
> 
> 
> 
Hi Larry,

Thanks! for the fast reply. 

we've tried [http://www.howtoforge.com/mirroring_with_rsync ] 

and i got this error:

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/

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?


Thanks
-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21430861.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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13  8:48   ` jedalaurin
@ 2009-01-13 13:35     ` tomas
  2009-01-13 14:17       ` jedalaurin
  2009-01-13 14:20       ` jedalaurin
  2009-01-13 18:57     ` Thorsten Kampe
  1 sibling, 2 replies; 14+ messages in thread
From: tomas @ 2009-01-13 13:35 UTC (permalink / raw)
  To: cygwin

-----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@server1.example.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@server1.example.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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 13:35     ` tomas
@ 2009-01-13 14:17       ` jedalaurin
  2009-01-13 15:10         ` Manish Sharma
  2009-01-13 15:50         ` tomas
  2009-01-13 14:20       ` jedalaurin
  1 sibling, 2 replies; 14+ messages in thread
From: jedalaurin @ 2009-01-13 14:17 UTC (permalink / raw)
  To: cygwin




Tomas Zerolo wrote:
> 
> -----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@server1.example.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@server1.example.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/
> 
> 
> 

server_A: Red hat
server_B: Window 2003 (cygwin)

i was on server_B running this command:


ssh -i /root/rsync/mirror-rsync-key someuser@server_A:/var/www/ /var/www/

all files on server_A to be transferred on server_B /var/www/
I got this error:
Connection closed by server_A
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]

I've already setup ssh on cygwin
http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html.

may I ask the alternative that you have the "other way 'round." for our
option.

Thanks in advance.



-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21435784.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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 13:35     ` tomas
  2009-01-13 14:17       ` jedalaurin
@ 2009-01-13 14:20       ` jedalaurin
  1 sibling, 0 replies; 14+ messages in thread
From: jedalaurin @ 2009-01-13 14:20 UTC (permalink / raw)
  To: cygwin




Tomas Zerolo wrote:
> 
> -----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@server1.example.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@server1.example.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/
> 
> 
> 

Btw, but 2 servers are both remote and was located on different countries
thats why I am using what i had now.

-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21435872.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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 14:17       ` jedalaurin
@ 2009-01-13 15:10         ` Manish Sharma
  2009-01-13 16:03           ` jedalaurin
  2009-01-13 15:50         ` tomas
  1 sibling, 1 reply; 14+ messages in thread
From: Manish Sharma @ 2009-01-13 15:10 UTC (permalink / raw)
  To: cygwin

>>>>> "jedalaurin" == jedalaurin  <neonflux386@yahoo.com> writes:

jedalaurin> Tomas Zerolo wrote:
[snip: lengthy explanation (59 lines)]
jedalaurin> server_A: Red hat
jedalaurin> server_B: Window 2003 (cygwin)

jedalaurin> i was on server_B running this command:

jedalaurin> ssh -i /root/rsync/mirror-rsync-key
jedalaurin> someuser@server_A:/var/www/ /var/www/

jedalaurin> all files on server_A to be transferred on server_B
jedalaurin> /var/www/ I got this error: Connection closed by server_A
jedalaurin> rsync: connection unexpectedly closed (0 bytes received so
jedalaurin> far) [receiver] rsync error: error in rsync protocol data
jedalaurin> stream (code 12) at
jedalaurin> /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
jedalaurin> [receiver=3.0.4]

Do you have free disk space on server_A?

-- 
Manish

Life is beautiful.*
* Conditions apply.


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 14:17       ` jedalaurin
  2009-01-13 15:10         ` Manish Sharma
@ 2009-01-13 15:50         ` tomas
  2009-01-13 17:16           ` jedalaurin
  1 sibling, 1 reply; 14+ messages in thread
From: tomas @ 2009-01-13 15:50 UTC (permalink / raw)
  To: cygwin

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

On Tue, Jan 13, 2009 at 05:30:40AM -0800, jedalaurin wrote:
> 
> 
> 
> Tomas Zerolo wrote:
[...]
> > As Larry said, this probably isn't Cygwin-specific. Rsync can be also

[...]

> server_A: Red hat
> server_B: Window 2003 (cygwin)
> 
> i was on server_B running this command:
> 
> 
> ssh -i /root/rsync/mirror-rsync-key someuser@server_A:/var/www/ /var/www/

Turns out my crystal ball was wrong ;-)

> all files on server_A to be transferred on server_B /var/www/
> I got this error:
> Connection closed by server_A
> 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]
> 
> I've already setup ssh on cygwin
> http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html.
> 
> may I ask the alternative that you have the "other way 'round." for our
> option.

No, actually "this way round" seems easier. You are using Cygwin for the
SSH client (you might want to use PuTTY if you aren't taking advantage
of other Cygwin features). 

(1) What happens if you invoke the ssh command on the Windows box?
    (you should get a shell on the RedHat box).

(2) Can you see activity on the redhat's box sshd or auth log file (found
    somewhere around /var/log -- places to look would be sshd.log,
    auth.log, daemon.log syslog)?

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

iD8DBQFJbLAHBcgs9XrR2kYRAlARAJ0Ss1ovcflUFWrWkJE15gtiI+CfGgCeJk3p
sKdA+WkDXwArOZJ47eMdJYA=
=bG9S
-----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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 15:10         ` Manish Sharma
@ 2009-01-13 16:03           ` jedalaurin
  0 siblings, 0 replies; 14+ messages in thread
From: jedalaurin @ 2009-01-13 16:03 UTC (permalink / raw)
  To: cygwin




मनीष wrote:
> 
>>>>>> "jedalaurin" == jedalaurin  <neonflux386@yahoo.com> writes:
> 
> jedalaurin> Tomas Zerolo wrote:
> [snip: lengthy explanation (59 lines)]
> jedalaurin> server_A: Red hat
> jedalaurin> server_B: Window 2003 (cygwin)
> 
> jedalaurin> i was on server_B running this command:
> 
> jedalaurin> ssh -i /root/rsync/mirror-rsync-key
> jedalaurin> someuser@server_A:/var/www/ /var/www/
> 
> jedalaurin> all files on server_A to be transferred on server_B
> jedalaurin> /var/www/ I got this error: Connection closed by server_A
> jedalaurin> rsync: connection unexpectedly closed (0 bytes received so
> jedalaurin> far) [receiver] rsync error: error in rsync protocol data
> jedalaurin> stream (code 12) at
> jedalaurin> /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
> jedalaurin> [receiver=3.0.4]
> 
> Do you have free disk space on server_A?
> 
> -- 
> Manish
> 
> Life is beautiful.*
> * Conditions apply.
> 
> 
> --
> 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/
> 
> 
> 

yes, we do have about 15GB++ server_A and on server_B 26GB++.
-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21437587.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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 15:50         ` tomas
@ 2009-01-13 17:16           ` jedalaurin
  0 siblings, 0 replies; 14+ messages in thread
From: jedalaurin @ 2009-01-13 17:16 UTC (permalink / raw)
  To: cygwin




Tomas Zerolo wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, Jan 13, 2009 at 05:30:40AM -0800, jedalaurin wrote:
>> 
>> 
>> 
>> Tomas Zerolo wrote:
> [...]
>> > As Larry said, this probably isn't Cygwin-specific. Rsync can be also
> 
> [...]
> 
>> server_A: Red hat
>> server_B: Window 2003 (cygwin)
>> 
>> i was on server_B running this command:
>> 
>> 
>> ssh -i /root/rsync/mirror-rsync-key someuser@server_A:/var/www/ /var/www/
> 
> Turns out my crystal ball was wrong ;-)
> 
>> all files on server_A to be transferred on server_B /var/www/
>> I got this error:
>> Connection closed by server_A
>> 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]
>> 
>> I've already setup ssh on cygwin
>> http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html.
>> 
>> may I ask the alternative that you have the "other way 'round." for our
>> option.
> 
> No, actually "this way round" seems easier. You are using Cygwin for the
> SSH client (you might want to use PuTTY if you aren't taking advantage
> of other Cygwin features). 
> 
> (1) What happens if you invoke the ssh command on the Windows box?
>     (you should get a shell on the RedHat box).
> 
> (2) Can you see activity on the redhat's box sshd or auth log file (found
>     somewhere around /var/log -- places to look would be sshd.log,
>     auth.log, daemon.log syslog)?
> 
> HTH
> - -- tomás
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFJbLAHBcgs9XrR2kYRAlARAJ0Ss1ovcflUFWrWkJE15gtiI+CfGgCeJk3p
> sKdA+WkDXwArOZJ47eMdJYA=
> =bG9S
> -----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/
> 
> 
> 


(1) What happens if you invoke the ssh command on the Windows box?
    (you should get a shell on the RedHat box).
on the window box(server_B):
-as root: i can login just like your in linux box.
-as someuser: where I've setup the rsync
http://www.howtoforge.com/mirroring_with_rsync:
It tend to disconnect me: like this Connection closed by server_A

(2) Can you see activity on the redhat's box sshd or auth log file (found
    somewhere around /var/log -- places to look would be sshd.log,
    auth.log, daemon.log syslog)? 

Sorry for the delay I cant find the ssd.log, auth.log, demon.log.

here is my /etc/ssh/sshd_config

#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#ShowPatchLevel no

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem       sftp    /usr/libexec/openssh/sftp-server
[root@cdr1-218 /]# tail /etc/syslog.conf
cron.*                                                  /var/log/cron

# Everybody gets emergency messages
*.emerg                                                 *

# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler

# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log

-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21438889.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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13  8:48   ` jedalaurin
  2009-01-13 13:35     ` tomas
@ 2009-01-13 18:57     ` Thorsten Kampe
  2009-01-13 19:00       ` Thorsten Kampe
  2009-01-14 10:07       ` jedalaurin
  1 sibling, 2 replies; 14+ messages in thread
From: Thorsten Kampe @ 2009-01-13 18:57 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 18:57     ` Thorsten Kampe
@ 2009-01-13 19:00       ` Thorsten Kampe
  2009-01-14 11:34         ` jedalaurin
  2009-01-14 10:07       ` jedalaurin
  1 sibling, 1 reply; 14+ messages in thread
From: Thorsten Kampe @ 2009-01-13 19:00 UTC (permalink / raw)
  To: cygwin

* Thorsten Kampe (Tue, 13 Jan 2009 19:44:22 +0100)
> * 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.

/without/, of course

T.


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 18:57     ` Thorsten Kampe
  2009-01-13 19:00       ` Thorsten Kampe
@ 2009-01-14 10:07       ` jedalaurin
  1 sibling, 0 replies; 14+ messages in thread
From: jedalaurin @ 2009-01-14 10:07 UTC (permalink / raw)
  To: cygwin




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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: file mirroring
  2009-01-13 19:00       ` Thorsten Kampe
@ 2009-01-14 11:34         ` jedalaurin
  0 siblings, 0 replies; 14+ messages in thread
From: jedalaurin @ 2009-01-14 11:34 UTC (permalink / raw)
  To: cygwin




Thorsten Kampe wrote:
> 
> * Thorsten Kampe (Tue, 13 Jan 2009 19:44:22 +0100)
>> * 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.
> 
> /without/, of course
> 
> T.
> 
> 
> --
> 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/
> 
> 
> 

Hi T. ,

Can you tell us more about some "other way 'round." for another method that
you have.
We are please to have the other options in benifit to other users. 
who want to expand thing in there way.

Thanks,

Jed

-- 
View this message in context: http://www.nabble.com/file-mirroring-tp21430068p21450227.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/

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-01-14  5:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13  7:23 file mirroring jedalaurin
2009-01-13  7:29 ` Larry Hall (Cygwin)
2009-01-13  8:48   ` jedalaurin
2009-01-13 13:35     ` tomas
2009-01-13 14:17       ` jedalaurin
2009-01-13 15:10         ` Manish Sharma
2009-01-13 16:03           ` jedalaurin
2009-01-13 15:50         ` tomas
2009-01-13 17:16           ` jedalaurin
2009-01-13 14:20       ` jedalaurin
2009-01-13 18:57     ` Thorsten Kampe
2009-01-13 19:00       ` Thorsten Kampe
2009-01-14 11:34         ` jedalaurin
2009-01-14 10:07       ` jedalaurin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).