From owner-freebsd-hubs Wed Nov 29 10:59:25 1995 Return-Path: owner-hubs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA10359 for hubs-outgoing; Wed, 29 Nov 1995 10:59:25 -0800 Received: from kryten.atinc.com (kryten.Atinc.COM [198.138.38.7]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id KAA10333 ; Wed, 29 Nov 1995 10:59:11 -0800 Received: (jmb@localhost) by kryten.atinc.com (8.6.9/8.3) id NAA07798; Wed, 29 Nov 1995 13:49:46 -0500 Date: Wed, 29 Nov 1995 13:49:45 -0500 (EST) From: "Jonathan M. Bresler" Subject: Re: Becoming a mirror site for FreeBSD To: Joe Greco cc: Jerry Kendall , hackers@freebsd.org, hubs@freebsd.org In-Reply-To: <199511291633.KAA14410@brasil.moneng.mei.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hubs@freebsd.org Precedence: bulk > > What is the best way to do this? the easiest way is to use the mirror perl script (its a port mirror-2.3). i have included the packages file that i use at the end run mirror out of cron 11 5 * * * /mirror packages jmb Jonathan M. Bresler FreeBSD Postmaster jmb@FreeBSD.ORG play go. ride bike. hack FreeBSD.--ah the good life i am moving to a new job. PLEASE USE: jmb@FreeBSD.ORG # # PACKAGES # # This is the default mirror settings used by my site: # kryten.atinc.com # # adapted from mirror.defaults by Lee McLoughlin # You should be able to use this at other sites. You should only have # to change bits that reference this site so look for doc.ic below. package=defaults # The LOCAL hostname - if not the same as `hostname` # hostname=src.doc.ic.ac.uk # Keep all local_dirs relative to here local_dir=/spare/anon-ftp/pub/ remote_password=jmb@kryten.atinc.com mail_to=jmb@kryten.atinc.com # Don't mirror file modes. Set all dirs/files to these dir_mode=0755 file_mode=0444 # By defaults files are owned by root.zero user=jmb group=staff # # Keep a log file in each updated directory # update_log=.mirror update_log=/home/jmb/bin/mirror.log # Don't overwrite my mirror log with the remote one. # Don't pull back any of their mirror temporary files. # Don't touch anything whose name begins with a space! # nor any FSP or gopher files... exclude_patt=(^|/)(\.mirror$|core$|\.cap|\.in\..*\.$|MIRROR.LOG|#.*#|\.FSP|\.cache|\.zipped|\.notar|\.message|lost+found/|\ ) # Try to compress everything compress_patt=. compress_prog=compress # Don't compress information files, files that don't benifit from # being compressed, files that tell ftpd, gopher, wais... to do things, # the sources for compression programs... # (Note this is the only regexp that is case insensitive.) # z matches compress/pack/gzip, gz for gzip. (built into perl) # taz/tgz is compressed or gzipped tar files # arc, arj, lzh, zip and zoo are pc and/or amiga archives. # sea are mac archives. # vms used -z instead of .z. stupid vms. # shk is multimedia? used on apple2s. compress_excl+|-z(\d+)?$|\.tgz|_tgz|\.tar\.Z|\.tar\.gz|\.taz$|\.arc$|\.zip$|\.lzh$|\.zoo$|\.exe$|\.lha$|\.zom$|\.gif$|\.jpeg$|\.jpg$|\.mpeg$|\.au$|\.shk$|read.*me|index|info|faq|gzip|compress|(^|/)\.\.?$ # Don't delete own mirror log, .notar or .cache files (incl in subdirs) # delete_excl=(^|/)\.(mirror|notar|cache)$ # Ignore any local readme and .mirror files # jmb 9411201 added .message files local_ignore=README.doc.ic|(^|/)\.(mirror|notar|message)$ # Automatically delete local copies of files that the # remote site has zapped do_deletes=true max_delete_files=50% max_delete_dirs=50% #package=FreeBSD.2.0-RELEASE # comment=FreeBSD 2.0-RELEASE distribution # site=ftp.cdrom.com # remote_dir=/pub/FreeBSD/2.0-RELEASE/ # local_dir+FreeBSD/2.0-RELEASE/ # compress_patt= # local_ignore=packages-2.0|(^|/)\.(mirror|notar|message)$ # #package=FreeBSD.2.0-packages # comment=FreeBSD 2.0 packages # site=ftp.cdrom.com # remote_dir=/pub/FreeBSD/packages-2.0 # local_dir+FreeBSD/2.0-RELEASE/packages-2.0 # compress_patt= # # package=FreeBSD.2.0.5-ALPHA # comment=FreeBSD 2.0.5 ALPHA # site=ftp.freebsd.org # remote_dir=/pub/FreeBSD/2.0.5-ALPHA # local_dir+FreeBSD/2.0.5-ALPHA # compress_patt= # exclude_patt=(^|/)(XF86-co.tgz|XF86-xc.tgz|\.mirror$|core$|\.cap|\.in\..*\.$|MIRROR.LOG|#.*#|\.FSP|\.cache|\.zipped|\.notar|\.message|lost+found/|\ ) package=FreeBSD.2.0.5-RELEASE comment=FreeBSD 2.0.5 RELEASE site=ftp.cdrom.com remote_dir=/pub/FreeBSD/2.0.5-RELEASE local_dir+FreeBSD/2.0.5-RELEASE compress_patt= exclude_patt=(^|/)(XF86-co.tgz|XF86-xc.tgz|distfiles|\.mirror$|core$|\.cap|\.in\..*\.$|MIRROR.LOG|#.*#|\.FSP|\.cache|\.zipped|\.notar|\.message|lost+found/|\ ) package=FreeBSD.2.1.0-RELEASE comment=FreeBSD 2.1.0-RELEASE distribution site=ftp.cdrom.com remote_dir=/pub/FreeBSD/2.1.0-RELEASE/ local_dir+FreeBSD/2.1.0-RELEASE/ compress_patt= local_ignore=packages|ports|(^|/)\.(mirror|notar|message)$ package=FreeBSD.2.1-packages comment=FreeBSD 2.1 packages site=ftp.cdrom.com remote_dir=/pub/FreeBSD/packages-2.1 local_dir+FreeBSD/2.1.0-RELEASE/packages compress_patt= exclude_patt=(^|/)(XF86-co.tgz|XF86-xc.tgz|distfiles|\.mirror$|core$|\.cap|\.in\..*\.$|MIRROR.LOG|#.*#|\.FSP|\.cache|\.zipped|\.notar|\.message|lost+found/|\ )