› Foros › PC › Software libre
#!/bin/sh
# Nombre de servidor, menos el protocolo, con la ruta de acceso al final
server=archive.ubuntu.com/ubuntu
# Version de distribucion (squeeze,lenny,stable,testing,etc)
release=saucy
# Arquitectura (i386|amd64)
arquitectura=amd64
# Seccion (main,contrib,non-free)
seccion=main,restricted,universe,multiverse
# Ruta de acceso del servidor principal, por lo http://my.web.server/directorio ( "/" en mint)
inPath=/ubuntu
# Protocolo usado para la transferencia(http, ftp, hftp, rsync)
proto=http
# Directorio donde guardar el mirror
salida=/mnt/wd/repositorio
# Start script
debmirror --host=$server \
--dist=$release \
--arch=$arquitectura \
--no-source \
--progress \
--verbose \
--ignore-small-errors \
--ignore-release-gpg \
--section=$seccion \
--root=$inPath \
--method=$proto \
$salida >> /var/log/`date +"mirrorlog%d-%m-%Y--%H:%M"` 2> /var/log/`date +"mirrorerrorlog%d-%m-%Y--%H:%M"`
Mirroring to /mnt/wd/repositorio from http://archive.ubuntu.com/ubuntu/ubuntu/
Arches: amd64
Dists: saucy
Sections: main,restricted,universe,multiverse
Pdiff mode: use
Will clean up after mirroring.
Attempting to get lock ...
Updating remote trace files (using rsync) ...
sending incremental file list
sent 12 bytes received 12 bytes 48.00 bytes/sec
total size is 0 speedup is 0.00
Getting meta files ...
[ 0%] Getting: dists/saucy/Release... #ok
[ 0%] Getting: dists/saucy/Release.gpg... #ok
gpgv: Signature made Thu Oct 17 12:42:26 2013 UTC using DSA key ID 437D05B5
[GNUPG:] ERRSIG 40976EAF437D05B5 17 10 00 1382013746 9
[GNUPG:] NO_PUBKEY 40976EAF437D05B5
gpgv: Can't check signature: public key not found
gpgv: Signature made Thu Oct 17 12:42:26 2013 UTC using RSA key ID C0B21F32
[GNUPG:] ERRSIG 3B4FE6ACC0B21F32 1 10 00 1382013746 9
[GNUPG:] NO_PUBKEY 3B4FE6ACC0B21F32
gpgv: Can't check signature: public key not found
gpgv: Signature made Thu Oct 17 12:42:26 2013 UTC using DSA key ID 437D05B5
gpgv: Can't check signature: public key not found
gpgv: Signature made Thu Oct 17 12:42:26 2013 UTC using RSA key ID C0B21F32
gpgv: Can't check signature: public key not found
Release gpg signature does not verify.
Ubuntu Release file: using Suite (saucy).
Parsing Packages and Sources files ...
Get Translation files ...
Files to download: 58929 MiB