public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Rsync on two WinXP Machines: how?
@ 2008-10-14 10:41 Richard Ivarson
  2008-10-14 10:58 ` Marco Atzeri
  2008-10-14 11:45 ` Dave Korn
  0 siblings, 2 replies; 9+ messages in thread
From: Richard Ivarson @ 2008-10-14 10:41 UTC (permalink / raw)
  To: cygwin

Hi,

Cygwin's rsync runs successfully on a WinXP machine of mine which remote 
syncs with a Linux PC. All works fine.

Now I'd like to remote sync two WinXP machines. How?

I tried the following, without success so far :

1.) On the 2nd PC I let (auto) start "rsync --daemon" so rsync is running and 
waiting.
2) When I start rsync on the 1st PC it always says: no connection possible 
(I've to write down the exact error message).

I've used the special host syntax with double colons for a remote sync daemon 
as described here: http://linuxreviews.org/man/rsync/index.html.en#lbAI
Codeword "rsync -av host::src /dest"

What could be the problem?

-Richard


--
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] 9+ messages in thread

* Re: Rsync on two WinXP Machines: how?
  2008-10-14 10:41 Rsync on two WinXP Machines: how? Richard Ivarson
@ 2008-10-14 10:58 ` Marco Atzeri
  2008-10-16  9:12   ` Richard Ivarson
  2008-10-14 11:45 ` Dave Korn
  1 sibling, 1 reply; 9+ messages in thread
From: Marco Atzeri @ 2008-10-14 10:58 UTC (permalink / raw)
  To: cygwin


--- Richard Ivarson ha scritto:

> Hi,
> 
> Cygwin's rsync runs successfully on a WinXP machine
> of mine which remote 
> syncs with a Linux PC. All works fine.
> 
> Now I'd like to remote sync two WinXP machines. How?
> 
> I tried the following, without success so far :
> 
> 1.) On the 2nd PC I let (auto) start "rsync
> --daemon" so rsync is running and 
> waiting.
> 2) When I start rsync on the 1st PC it always says:
> no connection possible 
> (I've to write down the exact error message).
> 
> I've used the special host syntax with double colons
> for a remote sync daemon 
> as described here:
> http://linuxreviews.org/man/rsync/index.html.en#lbAI
> Codeword "rsync -av host::src /dest"
> 
> What could be the problem?
> 
> -Richard

try with
starting  sshd service and connect with

rsync --rsh=ssh ...

Regards
Marco



      Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog

--
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] 9+ messages in thread

* RE: Rsync on two WinXP Machines: how?
  2008-10-14 10:41 Rsync on two WinXP Machines: how? Richard Ivarson
  2008-10-14 10:58 ` Marco Atzeri
@ 2008-10-14 11:45 ` Dave Korn
  2008-10-15 14:20   ` Richard Ivarson
  2008-10-16  9:19   ` Richard Ivarson
  1 sibling, 2 replies; 9+ messages in thread
From: Dave Korn @ 2008-10-14 11:45 UTC (permalink / raw)
  To: cygwin

Richard Ivarson wrote on 14 October 2008 11:40:

> 1.) On the 2nd PC I let (auto) start "rsync --daemon" so rsync is running
> and waiting.
> 2) When I start rsync on the 1st PC it always says: no connection possible
> (I've to write down the exact error message).
> 
> I've used the special host syntax with double colons for a remote sync
> daemon as described here:
> http://linuxreviews.org/man/rsync/index.html.en#lbAI Codeword "rsync -av
> host::src /dest" 
> 
> What could be the problem?

  Firewall settings, perhaps?  Use netstat on the 2nd PC to verify that port
873/tcp is open; if so, try using telnet or netcat into the port to test basic
connectivity.  For example you could use "nc -v -v -v -z localhost 873" on the
2nd PC to check local connectivity, then replace 'localhost' by the 2nd PC's
name and try it from the first pc.

  If the port is open but you can't connect via telnet/netcat, it must be a
firewall problem.  If the port is not open, maybe the daemon is not running;
verify whether or not using "ps", then check the log files, or try it at the
command line like:

rsync  --daemon --no-detach -v -v -v -v --log-file=file.txt

and see what ends up in file.txt if it exits.  (I notice that rsync will
immediately exit in daemon mode if the config file /etc/rsyncd.conf does not
exist.)

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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] 9+ messages in thread

* Re: Rsync on two WinXP Machines: how?
  2008-10-14 11:45 ` Dave Korn
@ 2008-10-15 14:20   ` Richard Ivarson
  2008-10-16  9:19   ` Richard Ivarson
  1 sibling, 0 replies; 9+ messages in thread
From: Richard Ivarson @ 2008-10-15 14:20 UTC (permalink / raw)
  To: cygwin

Thanks Marco & Dave.
I'm going to test the hints the next time I am on the remote machine. Then 
I'm going to report the results here.

-Richard


--
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] 9+ messages in thread

* Re: Rsync on two WinXP Machines: how?
  2008-10-14 10:58 ` Marco Atzeri
@ 2008-10-16  9:12   ` Richard Ivarson
  2008-10-16  9:38     ` Marco Atzeri
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Ivarson @ 2008-10-16  9:12 UTC (permalink / raw)
  To: cygwin

Marco Atzeri wrote:
[..]
> try with
> starting  sshd service 

Marco, how do I start the "sshd" service?

I can for example enter "ssh" to get a console secure shell.

What is the better way to use rsync on two Windows PCs: the service way or
the daemon way?

-Richard



--
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] 9+ messages in thread

* Re: Rsync on two WinXP Machines: how?
  2008-10-14 11:45 ` Dave Korn
  2008-10-15 14:20   ` Richard Ivarson
@ 2008-10-16  9:19   ` Richard Ivarson
  2008-10-16 15:28     ` Rsync on two Windows machines: way one clear Richard Ivarson
  1 sibling, 1 reply; 9+ messages in thread
From: Richard Ivarson @ 2008-10-16  9:19 UTC (permalink / raw)
  To: cygwin

Dave, thanks for the hints. I found there's no rsyncd.conf on my remote PC so 
I created an empty one and now the rsync is listing on the remote PC:

1st console:
 > rsync --daemon --no-detach -v -v -v -v --log-file=logbuch.txt

2nd console:
 > tail -f logfile.txt
2008/10/16 09:30:30 [3840] rsyncd version 3.0.4 starting, listening on port 873


On the local PC I finally can make rsync to connect to the remote rsync 
(daemon), but I'm not getting results, ie a "[local PC] rsync Remote::" 
doesn't show any files.

Do I have to configure "modules" on the remote PC? I hoped not because it 
means the local PC's rsync scripts are not flexible anymore, but testwise I 
did so: Remote PC's rsyncd.conf reads for example:
 >>
[modul]
path = /folder/
<<

A "[local PC] rsync Remote::" does list the entry "modul". However a
"[local PC] resync Remote::modul" does report an error message, something 
like "chown (?) root" access problem. (I forgot to wrote down the exact 
message...)

What could that be?
The user on the remote Windows who startet "rsync --daemon" via Autostart has 
access rights to the "/folder/.

-Richard


--
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] 9+ messages in thread

* Re: Rsync on two WinXP Machines: how?
  2008-10-16  9:12   ` Richard Ivarson
@ 2008-10-16  9:38     ` Marco Atzeri
  0 siblings, 0 replies; 9+ messages in thread
From: Marco Atzeri @ 2008-10-16  9:38 UTC (permalink / raw)
  To: cygwin


--- Richard Ivarson  ha scritto:

> Marco Atzeri wrote:
> [..]
> > try with
> > starting  sshd service 
> 
> Marco, how do I start the "sshd" service?
> 
> I can for example enter "ssh" to get a console
> secure shell.
> 
> What is the better way to use rsync on two Windows
> PCs: the service way or
> the daemon way?
> 
> -Richard
> 

I prefer sshd as service way, but it is personal
preference :-)

$ cygcheck -l openssh |grep /bin
/usr/bin/ssh.exe
/usr/bin/scp.exe
/usr/bin/ssh-add.exe
/usr/bin/ssh-agent.exe
/usr/bin/ssh-keygen.exe
/usr/bin/ssh-keyscan.exe
/usr/bin/sftp.exe
/usr/bin/slogin
/usr/bin/ssh-host-config
/usr/bin/ssh-user-config

use ssh-host-config to configure the service
and ssh-user-config to configure the user settings

Regards
Marco



      Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog

--
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] 9+ messages in thread

* Rsync on two Windows machines: way one clear
  2008-10-16  9:19   ` Richard Ivarson
@ 2008-10-16 15:28     ` Richard Ivarson
  2008-10-27 10:30       ` Mirko Vukovic
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Ivarson @ 2008-10-16 15:28 UTC (permalink / raw)
  To: cygwin

I wrote:
[..]
> Do I have to configure "modules" on the remote PC? I hoped not because 
> it means the local PC's rsync scripts are not flexible anymore, but 
> testwise I did so: Remote PC's rsyncd.conf reads for example:
>  >>
> [modul]
> path = /folder/
> <<
> 
> A "[local PC] rsync Remote::" does list the entry "modul". However a
> "[local PC] resync Remote::modul" does report an error message, 
> something like "chown (?) root" access problem. (I forgot to wrote down 
> the exact message...)

Some hours of biting through "old school command line syntax and pitfals"
later and with a wish to have a kind of "Robocopy GUI" :

You've to add to rsyncd.conf the line
>>
use chroot = no
<<

Then the access problem goes away, because (in my case) the remote user
hasn't got admin rights.


Also you've to specifiy the module's path in exact Cygwin syntax, ie:

>>
[modul]
path = /cygdrive/c/folder/
<<

Also in case you want to write to the Remote PC, you've to disable the
default "read only" on the module. So the entire resynd.conf on the remote PC
looks like:

>>
use chroot = no

[modul]
   path = /cygdrive/c/folder/
   read only = false
<<


This way on the local PC a "rsync Remote::" lists the remote PC's directory
"folder" niceley and with the usual rsync syntax you can remote sync again.

Is there a Cygwin "idiot proof way to remote sync to Win PCs with rsync"
document, somehwere? If not, I think such one would be a good idea for starters.


P.S. Marco, thanks for your hints for a service sshd!


-Richard


--
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] 9+ messages in thread

* Re: Rsync on two Windows machines: way one clear
  2008-10-16 15:28     ` Rsync on two Windows machines: way one clear Richard Ivarson
@ 2008-10-27 10:30       ` Mirko Vukovic
  0 siblings, 0 replies; 9+ messages in thread
From: Mirko Vukovic @ 2008-10-27 10:30 UTC (permalink / raw)
  To: cygwin

On Thu, Oct 16, 2008 at 11:27 AM, Richard Ivarson <RiIvarson@gmail.com> wrote:
> I wrote:
> [..]
>>
>> Do I have to configure "modules" on the remote PC? I hoped not because it
>> means the local PC's rsync scripts are not flexible anymore, but testwise I
>> did so: Remote PC's rsyncd.conf reads for example:
>>  >>
>> [modul]
>> path = /folder/
>> <<
>>
>> A "[local PC] rsync Remote::" does list the entry "modul". However a
>> "[local PC] resync Remote::modul" does report an error message, something
>> like "chown (?) root" access problem. (I forgot to wrote down the exact
>> message...)
>
> Some hours of biting through "old school command line syntax and pitfals"
> later and with a wish to have a kind of "Robocopy GUI" :
>
Your robocopy got my attention.  Maybe unison would be of use to you
http://www.cis.upenn.edu/~bcpierce/unison/

>
> -Richard
>
Mirko

--
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] 9+ messages in thread

end of thread, other threads:[~2008-10-27 10:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-14 10:41 Rsync on two WinXP Machines: how? Richard Ivarson
2008-10-14 10:58 ` Marco Atzeri
2008-10-16  9:12   ` Richard Ivarson
2008-10-16  9:38     ` Marco Atzeri
2008-10-14 11:45 ` Dave Korn
2008-10-15 14:20   ` Richard Ivarson
2008-10-16  9:19   ` Richard Ivarson
2008-10-16 15:28     ` Rsync on two Windows machines: way one clear Richard Ivarson
2008-10-27 10:30       ` Mirko Vukovic

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