delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/16/18:20:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <C76A4BD58EE0D311AC0F009027E0462F011081BE@production.nssolutions.com>
From: Jing Zhao <jzhao AT nssolutions DOT com>
To: cygwin AT cygwin DOT com
Subject: rsync delta transmission won't work
Date: Mon, 16 Jun 2003 18:19:48 -0400
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019