Satoru Lucas Shindoi escribió:
El Wed, 28 Nov 2007 15:47:12 -0300
Sebastian muniz <[EMAIL PROTECTED]> escribió:

Si te da diferencias, usa rsync para arreglarla.

Esta opción me interesa, a como viene la cosa?

Rsync permite comparar binariamente bloques
de archivo y transferir solo las diferencias.
En debian existe la opción... (el servidor de rsync que mantiene Debian.org)

Intuyo que en ubuntu tambien debe estar.
a ver..
https://lists.ubuntu.com/archives/ubuntu-devel-announce/2006-October/000211.html
Aqui hay algo al respecto.
Y aqui hay otro que pensó como yo, que no da en la tecla
http://ubuntuforums.org/showthread.php?t=2406
mmmm
aaacata!
https://help.ubuntu.com/community/RsyncCdImage

Entonces supongamos que bajaste el release...
y tenes el archivo

ubuntu-7.10-dvd-i386.iso <http://cdimage.ubuntu.com/releases/7.10/release/ubuntu-7.10-dvd-i386.iso>


la jerarquia de directorios de rsync puede ser diferente a la de http,
por lo que debieras buscar el archivo usando varias veces algo asi como
seba:/tmp/rsync$ rsync rsync://cdimage.ubuntu.com/cdimage/releases/ drwxrwsr-x 4096 2007/10/08 12:06:09 .
-rw-rw-r--         668 2007/04/23 10:05:30 .htaccess
lrwxrwxrwx           6 2006/10/31 07:22:25 6.06
[....]
drwxrwsr-x        4096 2007/10/24 08:58:06 gutsy

seba:/tmp/rsync$
e ir avanzando hasta que aqui esta:
seba:/tmp/rsync$ rsync --progress -Lvv rsync://cdimage.ubuntu.com/cdimage/releases/7.10/release/ opening tcp connection to cdimage.ubuntu.com port 873 opening connection using --server --sender -vvL --list-only . cdimage/releases/7.10/release/
drwxrwsr-x        4096 2007/10/18 05:20:32 .
-rw-rw-r--        1465 2007/10/18 05:07:11 .htaccess
-rw-rw-r--          21 2007/10/18 05:07:11 FOOTER.html
-rw-rw-r--        1788 2007/10/18 05:07:11 HEADER.html
-rw-rw-r--         119 2007/10/18 05:07:51 MD5SUMS
-rw-rw-r--         189 2007/10/18 05:07:51 MD5SUMS.gpg
-rw-rw-r--  4519006208 2007/10/17 07:52:02 ubuntu-7.10-dvd-amd64.iso
-rw-rw-r--       86422 2007/10/18 05:06:38 ubuntu-7.10-dvd-amd64.iso.torrent
-rw-rw-r--      315575 2007/10/17 07:52:21 ubuntu-7.10-dvd-amd64.list
-rw-rw-r--       31372 2007/10/15 20:43:22 ubuntu-7.10-dvd-amd64.manifest
-rw-rw-r--  4546652160 2007/10/17 07:58:18 ubuntu-7.10-dvd-i386.iso
-rw-rw-r--       86961 2007/10/18 05:07:11 ubuntu-7.10-dvd-i386.iso.torrent
-rw-rw-r--      320613 2007/10/17 07:58:39 ubuntu-7.10-dvd-i386.list
-rw-rw-r--       32479 2007/10/15 20:36:43 ubuntu-7.10-dvd-i386.manifest
drwxrwsr-x        4096 2007/10/18 05:26:08 source
delta-transmission enabled

sent 105 bytes  received 337 bytes  176.80 bytes/sec
total size is 9066535372  speedup is 20512523.47
seba:/tmp/rsync$

Luego haces un rsync del remoto en el local.
Va a correr un rato, y va a transferir solo las diferencias de los archivos.
Por ejemplo, transfiero un archivo :
seba:/tmp/rsync$ rsync --progress -Lvv rsync://cdimage.ubuntu.com/cdimage/releases/7.10/release/ubuntu-7.10-dvd-i386.list
opening tcp connection to cdimage.ubuntu.com port 873
opening connection using --server --sender -vvL --list-only . cdimage/releases/7.10/release/ubuntu-7.10-dvd-i386.list
-rw-rw-r--      320613 2007/10/17 07:58:39 ubuntu-7.10-dvd-i386.list
delta-transmission enabled

sent 130 bytes  received 84 bytes  61.14 bytes/sec
total size is 320613  speedup is 1498.19

Al retransferirlo solo comprueba, y no transfiere nada.


seba:/tmp/rsync$ rsync --progress -Lvv rsync://cdimage.ubuntu.com/cdimage/releases/7.10/release/ubuntu-7.10-dvd-i386.list
opening tcp connection to cdimage.ubuntu.com port 873
opening connection using --server --sender -vvL --list-only . cdimage/releases/7.10/release/ubuntu-7.10-dvd-i386.list
-rw-rw-r--      320613 2007/10/17 07:58:39 ubuntu-7.10-dvd-i386.list
delta-transmission enabled

sent 130 bytes  received 84 bytes  61.14 bytes/sec
total size is 320613  speedup is 1498.19

Enjoy!

--
Sebastian Muñiz
Cel. +54911 6246 8457
// begin random cookie
"Be *excellent* to each other."
                -- Bill, or Ted, in Bill and Ted's Excellent Adventure
// end random cookie

--
Para desuscribirte tenés que visitar la página
https://listas.linux.org.ar/mailman/listinfo/lugar-gral/

/* Publica y encontra trabajo relacionado con softlibre en 
http://www.usla.org.ar/modules/jobs/ */

Si tenés algún inconveniente o consulta escribí a mailto:[EMAIL PROTECTED]

Responder a