Changes made to main.c on implementing real time Rsync

Steven Xu
Thu, 11 Nov 2010 15:49:16 -0000

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/"

sending incremental file list

cl0016062moveq20101110.txt



sent 3051907 bytes  received 27 bytes  2034622.67 bytes/sec

total size is 3051437  speedup is 1.00



Here is the server log:

2010/11/11 10:42:34 [4904] rsync to Rsync/ from lba006 (10.132.208.9)

2010/11/11 10:42:34 [4904] receiving file list

2010/11/11 10:42:35 [4904] recv lba006 [10.132.208.9] Rsync ()
cl0016062moveq20101110.txt 3051437

2010/11/11 10:42:35 [4904] sent 54 bytes  received 3051927 bytes  total size
3051437





The path information is not copied over the destinations. If I use the following
command, I got error.



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

sending incremental file list

rsync: mkdir "Fiducie Desjardins/Dailies" (in Rsync) failed: No such
file or dir

ectory (2)

rsync error: error in file IO (code 11) at main.c(577) [Receiver=3.0.7]

rsync: connection unexpectedly closed (5 bytes received so far) [sender]

rsync error: error in rsync protocol data stream (code 12) at io.c(610) [sender
3.0.7]





Thanks.



Steven



From: 4wayned at gmail.com [mailto:4wayned at gmail.com] On Behalf Of Wayne
Davison
Sent: Tuesday, November 09, 2010 4:48 PM
To: Steven Xu
Cc: rsync at lists.samba.org
Subject: Re: Changes made to main.c on implementing real time Rsync



On Tue, Nov 9, 2010 at 11:04 AM, Steven Xu <steven.xu at lba.ca> wrote:

Example   "rsync  -av  source/l1/l2/l3/abc.txt
dest::Worksheets/l1/l2/l3/"



Do this instead:



rsync -avR source/./l1/l2/l3/abc.txt dest::Worksheets/



The use -f -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..

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20101111/e0b07a04/attachment.html>