times difference causes write

tim.conway at philips.com tim.conway at philips.com
Wed Nov 14 08:11:01 EST 2001


In the example you give, yes, a time difference causes a write.  You are 
using the -W (--whole-file) option, which directs rsync to simply send the 
file, in its entirety, if there is a discrepency in mtime (ctime too?), or 
extent.  It is used for situations where file access is slow enough that 
trying to do an incremental update would take more time/resources than 
simply sending the file... primary example being nfs-mounted filesystems. 
If you have fast dasd/slow network, you should probably just drop the -W.

Tim Conway
tim.conway at philips.com
303.682.4917
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn, 
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), 
".\n" '
"There are some who call me.... Tim?"




Don Mahurin <dmahurin at berkeley.innomedia.com>
Sent by: rsync-admin at lists.samba.org
11/13/2001 01:52 PM

 
        To:     rsync at lists.samba.org
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        times difference causes write
        Classification: 



Using rsync-2.4.6:

Is a times difference supposed to cause a write?

Also -t vs -I makes no difference.

Below shows the problem, I think:

[dmahurin at pc16 /tmp]$ mkdir x y

[dmahurin at pc16 /tmp]$ cp /bin/ls x

[dmahurin at pc16 /tmp]$ ls -l x/ls
-rwxr-xr-x    1 dmahurin users       43024 Nov 13 12:46 x/ls

[dmahurin at pc16 /tmp]$ rsync -vrtW x/ y
building file list ... done
./
ls
./
wrote 43112 bytes  read 36 bytes  86296.00 bytes/sec
total size is 43024  speedup is 1.00

[dmahurin at pc16 /tmp]$ touch x/ls

[dmahurin at pc16 /tmp]$ rsync -vrtW x/ y
building file list ... done
ls
./
wrote 43116 bytes  read 36 bytes  86304.00 bytes/sec
total size is 43024  speedup is 1.00

[dmahurin at pc16 /tmp]$ touch x/ls

[dmahurin at pc16 /tmp]$ rsync -vrIW x/ y
building file list ... done
ls
wrote 43116 bytes  read 36 bytes  86304.00 bytes/sec
total size is 43024  speedup is 1.00










More information about the rsync mailing list