PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : debian mirror



msi
27.12.02, 19:03
Hallo,

ich versuche gerade einen Debian Mirror zu bauen.
Dazu habe ich folgendes script hergenommen:




#! /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=/mnt/scsi/sdb/mirror/data

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

RSYNC_HOST=ftp.de.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 is a list of parameters listing patterns that rsync will exclude.
# The following example would exclude mostly everything:
#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 *_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 stable/
## --exclude testing/
## --exclude unstable/ \
# --exclude source/ \
## --exclude *.orig.tar.gz --exclude *.diff.gz --exclude *.dsc \
## --exclude /contrib/ --exclude /non-free/ \
# "


EXCLUDE="\
--exclude binary-alpha/ --exclude binary-arm/
--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 *_alpha.deb --exclude *_arm.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 source/ \
--exclude potato/ --exclude testing/ --exclude sarge/ \
--exclude *.orig.tar.gz --exclude *.diff.gz --exclude *.dsc \
--exclude kernel-image* --exclude kernel-patch* --exclude kernel-* \
"



# With a blank EXCLUDE you will mirror the entire archive.

#EXCLUDE=

# There should be no need to edit anything below this point, unless there
# are problems.

#-----------------------------------------------------------------------------#

# 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,
# explicitly replace `hostname -f` with the hostname.
HOSTNAME=`hostname -f`

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/${HOSTNAME}" \
$EXCLUDE \
$RSYNC_HOST::$RSYNC_DIR $TO > 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 rsync.log > /dev/null 2>&1



so jetzt muss ich feststellen, dass
auf meiner scsi platte schon 8,5 gb voll sind:


[root]@[sun]:[/mnt/scsi/sdb/mirror] df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 5.6G 3.4G 2.3G 61% /
/dev/hda5 9.8G 5.1G 4.8G 52% /mnt/windows
/dev/hda6 19G 15G 4.6G 76% /mnt/windows2
/dev/sdb1 17G 8.5G 7.6G 53% /mnt/scsi/sdb
[root]@[sun]:[/mnt/scsi/sdb/mirror]


und laut der ~/rsync.log
bin ich erst bei
pool/main/k/klic/klic_3.003-1.1_i386.deb
_________^^^_________________________________
und wie ich auch festgestellt habe geht
der alphabetisch vor.
Sind das wirklich alles Woody Packete und wie groß wird denn dann der ganze Spaß werden?

danke Markus

bernie
27.12.02, 20:14
Hi,

etwa 9GB hab ich mal gelesen, aber wenn du jetzt schon bei 8,5 bist,. hmm, weiss nicht 12-15 schätze ich.
(eine Flatrate ist schon was tolles oder wie?)

Ciao, Bernie

Steve
27.12.02, 20:18
Ich glaube es waren bei potatoe um die 9! es kommt natürlich drauf an was man alles läd! Kann es sein, dass du auch unstable ziehst ?

Dewitt
27.12.02, 22:18
Ich möchte hier nochmal diesen Link einwerfen, auch wenn
der das aktuelle Problem wahrscheinlich nicht lösen wird.

http://ds.ccc.de/079/debian-mirror-aufsetzen

Gruss,
Dewitt

msi
27.12.02, 22:18
Original geschrieben von Badsteve
Ich glaube es waren bei potatoe um die 9! es kommt natürlich drauf an was man alles läd! Kann es sein, dass du auch unstable ziehst ?
ja am anfang,
hab jetzt sid auch raus genommen.
ich hoffe der ganze spaß passt noch auf die platte.

ja sone flatrate macht richtig spaß, vor allem
wenn dann alles so lahm geht wegen einem dl.
ich setz nie mehr freiwillig nen mirror auf!


danke für den link
werd mir das mal anschauen

Berufspenner
27.12.02, 23:56
Original geschrieben von msi ja sone flatrate macht richtig spaß, vor allem
wenn dann alles so lahm geht wegen einem dl.
ich setz nie mehr freiwillig nen mirror auf!
Hi

Ja wieso machst du sowas denn überhaupt? Welchen Sinn und Zweck versprichst du dir damit? Anderen nützt es eh nicht viel bei einem Upload von max. 20 kb/s.

Cu

msi
28.12.02, 00:03
in der schule haben wir einen computerraum den schüler betreuen.
Leider haben wir da nur isdn und mit isdn
3 Server upzugraden und die Kleinen wollen auch noch
rechner (Server?) testweise aufsetzen,
da wird das isdn nicht reichen.
Also brauchen wir einen Mirror im LAn.

Berufspenner
28.12.02, 00:14
Hi@all

Ok das ist dann schon verständlich.

Cu

Flightbase
10.05.03, 03:54
holla!
ich werd mir auf eine fw festplatte nen debian mirror bauen. die kann ich dann lustig mittm laptop überall mit hinschleppen... und bei kumpels die kein inet haben is sowas auch praktisch.
der link oben ist ziemlich hilfreich:

debmirror /var/www/debian-non-US/ --nosource -h ftp.freenet.de -r debian-non-US/ --method=ftp -p --dist woody/non-US,woody-proposed-updates/non-US,sarge/non-US,sarge-proposed-updates/non-US

debmirror /var/www/debian/ --nosource -h ftp.freenet.de -r debian/ --method=ftp -p --dist woody,woody-proposed-updates,sarge,sarge-proposed-updates

so ähm ja.. kleine frage am rande - es hat nicht zufällig jemand das wissen und die lust mir lines auf sid anzupassen?
einfach woody durch sid ersetzen klappt nicht so richtig.
und ähm - wie schwer ist es, wenn ich andere einträge meiner sources.list auch haben möchte?
also externe quellen.... läßt sich das auch so einfach bewerkstelligen?

thx, Nik

mikevx
28.08.03, 17:16
Hallo

Was ist die empfehlenswerteste Einstellung wenn man im Endeffek den gleichen Packetumfang wie die 7 CD's als (privaten) Mirror auf seinen Server anlegen will? Gibts evtl ne Möglichkeit die CD downzuloaden und das ganze in ein Verzeichnis zu kopieeren und wenn ja welche Dateien müßten wie angepasst werden? Wäre hilfreich, da ich wärend der Installation keine Internetverbindung habe (da ich den Server installieren will :-) )

Gruß
Mike

Jinto
28.08.03, 18:05
@flightbase
Für sid gibt es keine "proposed-updates". Es gibt nur sid.

Deshalb schätze ich muss es so aussehen (nicht getestet):
debmirror /var/www/debian/ --nosource -h ftp.freenet.de -r debian/ --method=ftp -p --dist sid
HTH