1) Mailadresse ist schon OK , habe den richtigen Namen unten in die Mail geschrieben, war also nicht anonym 2) Werde mir Richtlinien f�r Usenet bei Gelegenheit anschauen
3) Script __________________________________________ #! /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=/daten2/debian_mirror/debian/ # TO_NON_US=/daten2/debian_mirror/debian-non-US/ TO_SEC=/daten2/debian_mirror/debian_security/ # RSYNC_HOST is the site you have chosen from the mirrors file. # (http://www.debian.org/mirror/list-full) #RSYNC_HOST=ftp.leo.org RSYNC_HOST=ftp.de.debian.org # RSYNC_HOST_NON_US=ftp.de.debian.org RSYNC_HOST_SEC=security.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/ # RSYNC_DIR_NON_US=debian-non-US/ RSYNC_DIR_SEC=debian-security/ rsync --recursive --links --hard-links --times --verbose --compress --delete \ --exclude "Archive-Update-in-Progress-${HOSTNAME}" \ --exclude "project/trace/${HOSTNAME}" \ $RSYNC_HOST_SEC::$RSYNC_DIR_SEC $TO_SEC # 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-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 *_hurd-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 *.udeb \ --exclude *.orig.tar.gz --exclude *.diff.gz --exclude *.dsc \ --exclude *.tar.gz \ --exclude *-proposed-updates/ \ --exclude disks-alpha/ --exclude disks-arm/ --exclude disks-hppa/ \ --exclude disks-ia64/ --exclude disks-m68k/ --exclude disks-mips/ \ --exclude disks-mipsel/ --exclude disks-powerpc/ --exclude disks-s390/ \ --exclude disks-sparc/ \ " ### --exclude binary-alpha/ --exclude binary-arm/ --exclude binary-i386/ \ ### --exclude *_alpha.deb --exclude *_arm.deb --exclude *_i386.deb \ ### --exclude main/ --exclude contrib/ --exclude non-free/ \ ### --exclude *_hurd-i386.deb --exclude *_all.deb \ # 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 # The standard debian archive echo "Update debian archive" >> rsync.log 2>&1 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 mkdir -p "${TO}/project/trace" date -u > "${TO}/project/trace/${HOSTNAME}" # The debian-non-US archive echo "Update debian-non-US archive" >> rsync.log 2>&1 rsync --recursive --links --hard-links --times --verbose --compress --delete \ --exclude "Archive-Update-in-Progress-${HOSTNAME}" \ --exclude "project/trace/${HOSTNAME}" \ $EXCLUDE \ $RSYNC_HOST_NON_US::$RSYNC_DIR_NON_US $TO_NON_US >> rsync.log 2>&1 mkdir -p "${TO_NON_US}/project/trace" date -u > "${TO_NON_US}/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 ________________Ende Script_______________________ Kai Bausch Am Montag, 28. Oktober 2002 23:12 schrieb Christian Schmidt: > [EMAIL PROTECTED] wrote on 28.10.2002: > > ^^ Ein Realname waere schoen... > > > Danke Euch, habe ein Script gefunden. > > Verraetst Du uns fuer's Archiv auch welches? > > [TOFU entsorgt] -> <http://learn.to/quote> > > Gruss, > Christian -- H�ufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)

