[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Обновить образы дисков с Etch r2 до r4



28 июля 2008 г. 15:19 пользователь Dmitry E. Oboukhov <unera@debian.org> написал:

...rsync увидит что на источнике файл имеет другие дату/размеры
и полностью его перекачает

Вот... пример для Lenny (образ netinst)

$ ls -l debian-testing-i386-netinst.iso

-rw-rw-rw- 1 belenkov belenkov 164186112 2008-07-14 12:22 debian-testing-i386-netinst.iso

$ rsync -n -vv cdimage.debian.org::cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso

opening tcp connection to cdimage.debian.org port 873
opening connection using --server --sender -vvn --list-only . cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso
MOTD: Welcome to the rsync archive at Academic Computer Club, Ume\#345 University.

-rw-r--r--   170082304 2008/07/26 13:30:26 debian-testing-i386-netinst.iso
delta-transmission enabled

sent 157 bytes  received 170 bytes  218.00 bytes/sec
total size is 170082304  speedup is 520129.37

Видим что файлы образов разные

Запускаем обновление образа (вывод rsync немного сокращу):

$ rsync --stats --progress -vv cdimage.debian.org::cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso ./debian-testing-i386-netinst.iso
...
delta-transmission enabled
debian-testing-i386-netinst.iso
   170082304 100%    1.79MB/s    0:01:30 (xfer#1, to-check=0/1)

rsync[15768] (receiver) heap statistics:
  arena:         135168   (bytes from sbrk)
  ordblks:            3   (chunks not in use)
  smblks:             3
  hblks:              2   (chunks from mmap)
  hblkhd:        532480   (bytes from mmap)
  allmem:        667648   (bytes from sbrk + mmap)
  usmblks:            0
  fsmblks:          112
  uordblks:       84736   (bytes used)
  fordblks:       50432   (bytes free)
  keepcost:       50288   (bytes in releasable chunk)

rsync[15767] (generator) heap statistics:
  arena:         135168   (bytes from sbrk)
  ordblks:            3   (chunks not in use)
  smblks:             2
  hblks:              1   (chunks from mmap)
  hblkhd:        266240   (bytes from mmap)
  allmem:        401408   (bytes from sbrk + mmap)
  usmblks:            0
  fsmblks:           72
  uordblks:       68872   (bytes used)
  fordblks:       66296   (bytes free)
  keepcost:       66176   (bytes in releasable chunk)

Number of files: 1
Number of files transferred: 1
Total file size: 170082304 bytes
Total transferred file size: 170082304 bytes
Literal data: 89391544 bytes
Matched data: 80690760 bytes
File list size: 50
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 89906
Total bytes received: 89428044

sent 89906 bytes  received 89428044 bytes  775047.19 bytes/sec
total size is 170082304  speedup is 1.90

Собственно из 170 мегов образа реально выкачалось 89, что явно не весь образ

--
С уважением, Евгений
evgbel@gmail.com
Заметки линуксоида - http://linuz.pp.ru

Reply to: