Re: armar mirror
14G /ftp/pub/debian
Eso si, define MUY bien los EXCLUDES porque aunque pretendas armar un
mirror para i386 te puedes ver inundado por otras arquitecturas como
*_mips.deb, *_arm.deb, *_hppa.deb, *_ia64.deb, *_sparc.deb.
Como me ha pasado a mi :(
La info para hacer mirrors la tienes en www.debian.org/mirror.
Adjunto el fichero que he usado para crear el mirror con las distintas
variantes de los EXCLUDES... aunque para mi que no me ha hecho mucho
caso...
o------------------------------------------------o
| Javier Gómez Sierras |
| jgomsi@obelix.umh.es |
| http://obelix.umh.es |
o------------------------------------------------o
On Thu, 3 May 2001, Rodrigo De la Vega wrote:
> Hola
> En mi Universidad (Chile) estamos pensando en montar un mirror de
> debian. Por lo pronto tenemos potato, pero ¿cuanto estara pesando pool y
> que tasa de crecimiento tendra (como para presupuestar HD) ? ¿alguien
> sabe que hay que hacer para ser mirror oficial?.
>
> Saludos
> Rodrigo
>
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-spanish-request@lists.debian.org < /dev/null
>
>
#! /bin/sh
set -e
# Set the variables below to fit your site. You can then use cron to have this
# script run daily to automatically update your copy of the archive
#
# TO is the destination for the base of the debian directory (the dir that
# holds dists/ and ls-lR)
#
# RSYNC_HOST is the site you have chosen from the mirrors file
#
# RSYNC_DIR is the directory given in the Archive-rsync: line of the
# mirrors file for the site you have chosen to mirror.
#
# chmod 744 anonftpsync
#
# You MUST have rsync 2.0.16-1 or newer which is available in slink
# With a blank EXCLUDE you will mirror the entire archive.
#EXCLUDE="--exclude *alpha.deb --exclude *m68k.deb --exclude \
# *powerpc.deb --exclude stable/ --exclude bo/ --exclude \
# /contrib/ --exclude /non-free/ --exclude source/ --exclude \
# /Debian-1.3* --exclude binary-alpha/ --exclude binary-m68k/ \
# --exclude binary-powerpc/ --exclude Incoming/ --exclude \
# local/ --exclude bo-unstable/ --exclude bo-updates/ "
TO=/ftp/pub/debian
RSYNC_HOST=ftp.fr.debian.org
RSYNC_DIR=debian/
EXCLUDE="--exclude *_alpha.deb --exclude *_m68k.deb --exclude *_powerpc.deb \
--exclude *_ia64.deb --exclude *_sparc.deb --exclude *_arm.deb \
--exclude *_mips*.deb --exclude *_hppa.deb --exclude *_sh.deb \
--exclude binary-alpha/ --exclude binary-m68k/ --exclude binary-powerpc/ \
--exclude binary-ia64/ --exclude binary-sparc/ --exclude binary-arm/ \
--exclude binary-mips*/ --exclude binary-hppa/ --exclude binary-sh/ \
--exclude source/"
#EXCLUDE="--exclude *alpha.deb --exclude *m68k.deb --exclude *powerpc.deb \
#--exclude bo/ --exclude source/ --exclude /Debian-1.3* \
#--exclude binary-alpha/ --exclude binary-m68k/ --exclude binary-powerpc/ \
#--exclude Incoming/ --exclude local/ --exclude bo-unstable/ \
#--exclude bo-updates/ --exclude binary-arm/ --exclude binary-sparc/ "
#*_mips.deb
#*_arm.deb
#*_hppa.deb
#*_ia64.deb
#*_sparc.deb
# Note: on some non-Debian systems, hostname doesn't accept -f option.
# If that's the case on your system, make sure hostname prints the full
# hostname, and remove the -f option. If there's no hostname command,
# replace `hostname -f` with the hostname manually below.
LOCK="${TO}/Archive-Update-in-Progress-`hostname -f`"
# Get in the right directory and set the umask to be group writable
#
cd $HOME
umask 002
# Check to see if another sync is in progress
if lockfile -! -l 43200 -r 0 "$LOCK"; then
echo `hostname` is unable to start rsync, lock file exists
exit 1
fi
# Note: on some non-Debian systems, trap doesn't accept "exit" as signal
# specification. If that's the case on your system, try using "0".
trap "rm -f $LOCK > /dev/null 2>&1" exit
set +e
rsync -rltvz --delete \
--exclude "Archive-Update-in-Progress-`hostname -f`" \
--exclude "project/trace/`hostname -f`" \
$EXCLUDE \
$RSYNC_HOST::$RSYNC_DIR $TO > rsync.log 2>&1
date -u > "${TO}/project/trace/`hostname -f`"
savelog rsync.log > /dev/null 2>&1
Reply to: