Changes made to main.c on implementing real time Rsync

Steven Xu steven.xu at
Thu Nov 11 11:00:06 MST 2010

Hi, Benjarmin and Wayne

Wayne solutions works. 
It's my mistake.


-----Original Message-----
From: Benjamin R. Haskell [mailto:rsync at] 
Sent: Thursday, November 11, 2010 11:41 AM
To: Steven Xu
Cc: Wayne Davison; rsync at
Subject: RE: Changes made to main.c on implementing real time Rsync

On Thu, 11 Nov 2010, Steven Xu wrote:

> Hi, Wayne,
> Thanks for your reply.
> I just did a test:
> Here is the Rsync client output:
> C:\Program Files (x86)\cwRsync\bin\rsync" -av "/cygdrive/e/fileserver/Worksheets/reconcil/./Fiducie Desjardins/Dailies/cl0016062moveq20101110.txt"
>   "lba023::Rsync/"

You've left out the '-R' option, which was the other half of Wayne's 
response (the '-R' option and the '/./' in the source):

"C:\Program Files (x86)\cwRsync\bin\rsync" -Rav "/cygdrive/e/fileserver/Worksheets/reconcil/./Fiducie Desjardins/Dailies/cl0016062moveq20101110.txt" "lba023::Rsync/"

-R (part of the '-Rav' [equivalent to -avR or -a -v -R]), short for 
--relative, is what makes the difference: it tells rsync that the '/./' 
in the first path name is where the path starts (the client will send 
everything after the /./ as the path name).

Wayne's original explanation:

> Do this instead:
> rsync -avR source/./l1/l2/l3/abc.txt dest::Worksheets/
> The use of -R (--relative) along with the /./ path element to signal 
> how much of the source path goes into the copy will make rsync create 
> all the needed dirs on the destination.
> ..wayne..


More information about the rsync mailing list