(Courriels de diversion: <tisses@pochee-urgees.com> <invariabilite@transcoderions-deposent.com> <nichiez@microfilmerais-reboises.com> <contre-attaquais@paraissait-cartonnerai.com> <rebattraient@allechait-denonceras.com> <intelligibles@rebiffee-crachin.com> <concentrationnaires@arraisonneras-redemptrice.com> <comptabiliserent@defraîchisse-irreligieuses.com> <vinrent@gauchisant-bloquerez.com> <flânant@conformera-quintuplait.com> )


Bonjour.

J'ai commencé à mettre en place un mirroir debian pour mon réseau en local.
Ca fait 3 semaines que ça tourne mon script modifié : la source provient de
"anonftpsync"

Le problème ç'est que le répertoire local fait maintenant 18 Go et j'ai peur
de passer l'année.
Ci joint le script.
Que faire ?
Je veux juste les packets pour une plateforme i586 (pc de bureau) et les
packets de mise à jour de sécurité.
Un test ftp sur ce site me donne une estimation de 93 Go de données. Je ne
pense pas avoir besoin de tout cela.

Merci de votre aide
Nicolas M.



#! /bin/sh
set -e

# This script originates from http://www.debian.org/mirror/anonftpsync

# Note: You MUST have rsync 2.0.16-1 or newer, which is available in slink
# and all newer Debian releases, or at http://rsync.samba.org/

# 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.

# Don't forget:
# chmod 744 anonftpsync

# TO is the destination for the base of the Debian mirror directory
# (the dir that holds dists/ and ls-lR).

TO=/home/stockage/linux/Debian/mirror/debian

# RSYNC_HOST is the site you have chosen from the mirrors file.
# (http://www.debian.org/mirror/list-full)

RSYNC_HOST=ftp.fr.debian.org

# RSYNC_DIR is the directory given in the "Packages over rsync:" line of
# the mirrors file for the site you have chosen to mirror.

RSYNC_DIR=debian/

EXCLUDE="\
  --exclude binary-alpha/ --exclude binary-arm/ --exclude binary-i386/ \
  --exclude binary-m68k/ --exclude binary-powerpc/ --exclude binary-sparc/ \
  --exclude binary-ia64/ --exclude binary-mips*/ --exclude binary-hppa/ \
  --exclude binary-sh/ --exclude binary-s390/ \
  --exclude binary-hurd-i386/ \
  --exclude *_alpha.deb --exclude *_arm.deb --exclude *_i386.deb \
  --exclude *_m68k.deb --exclude *_powerpc.deb --exclude *_sparc.deb \
  --exclude *_ia64.deb --exclude *_hppa.deb --exclude *_sh.deb \
  --exclude *_mips.deb --exclude *_mipsel.deb --exclude *_s390.deb \
  --exclude *_hurd-i386.deb \
  --exclude disks-alpha/ --exclude disks-arm/ --exclude disks-i386/ \
  --exclude disks-ia64/ --exclude disks-m68k/ --exclude disks-mips*/  \
  --exclude disks-powerpc/  --exclude disks-s390/  --exclude disks-sparc/ \
  --exclude testing/ --exclude unstable/ \
  --exclude source/ \
  --exclude *.orig.tar.gz --exclude *.diff.gz --exclude *.dsc \
  --exclude /contrib/ --exclude /non-free/ \
 "

OTHEROPTS=

LOCK="${TO}/Archive-Update-in-Progress-${HOSTNAME}"

# 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 --recursive --links --hard-links --times --verbose --compress --delete
\
     --exclude "Archive-Update-in-Progress-${HOSTNAME}" \
     --exclude "project/trace/*" \
     $EXCLUDE \
     $OTHEROPTS \
     $RSYNC_HOST::$RSYNC_DIR $TO > ${TO}/project/trace/rsync.log 2>&1
date -u > "${TO}/project/trace/${HOSTNAME}"

# Note: if you don't have savelog, use any other log rotation facility, or
# comment this out, the log will simply be overwritten each time.
savelog ${TO}/project/trace/rsync.log > /dev/null 2>&1



--------------------------------------------------------------------
Les listes de diffusion occultes: <URL:http://www.CULTe.org/listes/>