X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Richard Ivarson Subject: Rsync on two Windows machines: way one clear Date: Thu, 16 Oct 2008 17:27:43 +0200 Lines: 58 Message-ID: References: <007f01c92df2$2b60a7a0$9601a8c0 AT CAM DOT ARTIMI DOT COM> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: 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 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/