This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

rsync delta transmission won't work


I am sync'ing files on Windows to NetBSD unix box.
when mounting unix through samba (CIFS), it's mapped
to a drive (say g:), the following cmd is used to rsync:

rsync -a -v -v --no-whole-file randfile.zip /cygdrive/g/rsync
-----------------------
building file list ...
expand file_list to 4000 bytes, did move
done
delta transmission enabled
randfile.zip
total: matches=0  tag_hits=0  false_alarms=0 data=21209310
wrote 21212033 bytes  read 36 bytes  2020197.05 bytes/sec
total size is 21209310  speedup is 1.00
-----------------------
Then added another a few bytes at the end of the randfile.zip,
and run the cmd again:
-----------------------
building file list ...
expand file_list to 4000 bytes, did move
done
delta transmission enabled
randfile.zip
total: matches=10042  tag_hits=10044  false_alarms=0 data=610
wrote 40913 bytes  read 60294 bytes  1927.75 bytes/sec
total size is 21209314  speedup is 209.56
-----------------------
So only the partial file is transferred and it looked good.

Now, run rsync through network like this:

rsync -a -v -v --no-whole-file randfile.zip root@myServer:/rsync
-----------------------
opening connection using rsh -l root myServer rsync --server -vvlogDtpr .
/rsync
building file list ...
expand file_list to 4000 bytes, did move
done
randfile.zip
total: matches=0  tag_hits=0  false_alarms=0 data=21209314
wrote 21212037 bytes  read 36 bytes  3856740.55 bytes/sec
total size is 21209314  speedup is 1.00
-----------------------

Then added another a few bytes at the end of the randfile.zip,
and run the same cmd again. Here is the output:
-----------------------
opening connection using rsh -l root jingbsd rsync --server -vvlogDtpr .
/rsync
building file list ...
expand file_list to 4000 bytes, did move
done
randfile.zip
total: matches=0  tag_hits=0  false_alarms=0 data=21209318
wrote 21212041 bytes  read 36 bytes  4713794.89 bytes/sec
total size is 21209318  speedup is 1.00
-----------------------

rsync transmitted the whole file. Note that "delta transmission enabled"
is not shown, even the exact options were used as in the 1st case?
Can somebody tell me if rsync is broken? If not, why?

Thanks.

Jing


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]