Hello. I'm practicing my rsync-skills. Can anyone tell me why rsync insists on copying the entire source file when syncing two almost identical files, instead of just the diff? My example file is an 677 MB iso file.
Code:
$ ls -l
total 661920
-rw-r--r-- 1 rick users 677138432 2009-04-13 12:26 original.iso
I create a slightly modified version by copying and appending some bytes to the end:
Code:
$ cp original.iso modified.iso
$ echo hello >> modified.iso
rsync insists on transfering the entire file (yes, I know it's all local in this example)...
Code:
$ rsync -av --stats original.iso modified.iso
sending incremental file list
original.iso
Number of files: 1
Number of files transferred: 1
Total file size: 677138432 bytes
Total transferred file size: 677138432 bytes
Literal data: 677138432 bytes
Matched data: 0 bytes
File list size: 42
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 677221182
Total bytes received: 31
sent 677221182 bytes received 31 bytes 26557694.63 bytes/sec
total size is 677138432 speedup is 1.00
As you can see, 677138432 bytes are sent and 0 bytes match... what am I missing?