rsync Windows UNC
StuartH at ecs-tech.com
Wed Mar 19 16:30:21 GMT 2008
You're using the wrong path format for cwrsync in the rsyncd.conf file
It needs to be in cygwin format.
path = /cygdrive/c/windows/
path = /cygdrive/z/
if it was a network drive of z:\
I don't think the basic cwrsync will support UNC paths. So I suggest you
mount a drive to a network share, then run the rsync script then dismount
the drive letter.
Basically the 'net use ...' and 'net use ... /Delete' commands
Works for me on Windows 2003 R2 SP2
Watch out for the path and file name limitation with using cygwin/Rsync on
Windows systems as it's basically ham-strung limited to 256 characters due
to cygwin still supporting Windows 98. I kid you not...
From: Matt McCutchen <matt at mattmccutchen.net>
To: Kalb Stefan <stefan.kalb at mmsag.ch>
Cc: rsync at lists.samba.org
Date: Mon, 17 Mar 2008 11:19:25 -0400
Subject: Re: rsync Windows UNC
> On Mon, 2008-03-17 at 15:57 +0100, Kalb Stefan wrote:
> > I try to backup files from a NAS to our backup-server using rsync.
> > The NAS itself is not able to run rsync.
> > Therefore I installed rsyncd (cwrsync 2.1.1) on a windowsserver which
> > has access to the NAS.
> > I configured the rsyncd like this:
> > [nspPR53_so2]
> > path = /172.21.87.9/nspPR53_so/material/doc
> > read only = true
> > transfer logging = yes
> > When connecting with the client I get the error message:
> > rsync rsync://172.21.87.14/nspPR53_so2
> > @ERROR: chdir failed
> > rsync error: error starting client-server protocol (code 5) at
> > main.c(1383) [receiver=2.6.9]
> > Any ideas what I'm making wrong?
> The module path needs to be of a form recognized by Cygwin as UNC. You
> could try a double slash at the beginning, but the most reliable
> technique is generally to map a network drive, say N:, and then refer
> that drive: /cygdrive/n/ï»¿nspPR53_so/material/doc .
> To unsubscribe or change options:
> Before posting, read:
This email is the property of ECS Technology Ltd.
This company is registered in Scotland with company number 212513.
VAT registered GB 761 7456 12
More information about the rsync