delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/10/16/11:28:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Richard Ivarson <RiIvarson AT gmail DOT com>
Subject: Rsync on two Windows machines: way one clear
Date: Thu, 16 Oct 2008 17:27:43 +0200
Lines: 58
Message-ID: <gd7mhr$7r6$1@ger.gmane.org>
References: <gd1sut$pqd$1 AT ger DOT gmane DOT org> <007f01c92df2$2b60a7a0$9601a8c0 AT CAM DOT ARTIMI DOT COM> <gd70sm$mna$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
In-Reply-To: <gd70sm$mna$1@ger.gmane.org>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019