Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 1995 10:53:57 +0700 (ICT)
From:      Charoenchai Kiranantawat <ckt@lily.bu.ac.th>
To:        freebsd-questions@FreeBSD.ORG
Subject:   mirror script
Message-ID:  <Pine.SOL.3.91.950830105003.533A-100000@lily.bu.ac.th>

next in thread | raw e-mail | index | archive | help
    Dear Sirs:
    I want my FreeBSD set up as FTP server to serve users in Thailand,
but my software that mirrored did not like as master,it create directory 
instead symlink, this is my sample mirror.defaults.
    does anyone have any suggestion about my script or a sample script 
that work well, please post, or mail to me.
    Your comments is worth for me.
    Thank You in advance,
    
    Charoenchai Kiranantawat
    System Admin 
    Bangkok University 
    BANGKOK,Thailand

# This is the default mirror settings used by my site:
# src.doc.ic.ac.uk (146.169.2.1)
# This is home of the UKUUG Software Distribution Service
#
# Lee McLoughlin <lmjm@doc.ic.ac.uk>

# 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`
	# (I advertise the name src.doc.ic.ac.uk but the machine is
	#  really puffin.doc.ic.ac.uk.)
	hostname=buarchive.bu.ac.th
	# Keep all local_dirs relative to here
	local_dir=/home/ftp/pub/
	remote_password=ftp@buarchive.bu.ac.th
	mail_to=ckt@buarchive.bu.ac.th
	# 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=0
	group=0
	# Keep a log file in each updated directory
	update_log=.mirror
	# 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$|\.in\..*\.$|MIRROR.LOG|#.*#|\.FSP|\.cache|\.zipped|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.)
	#compress_excl+|^\.notar$|-z|\.tgz$|\.taz$|\.tar.Z|\.arc$|\.zip$|\.lzh$|\.zoo$|\.exe$|\.lha$|\.zom$|\.gif$|\.jpeg$|\.jpg$|\.mpeg$|\.au$|read.*me|index|\.message|info|faq|gzip|compress|(^|/)\.\.?$
	# Don't delete own mirror log or any .notar files (incl in subdirs)
	delete_excl=(^|/)\.(mirror|notar)$
	# Ignore any local readme files
	local_ignore=README.doc.ic
	# Automatically delete local copies of files that the
	# remote site has zapped
	do_deletes=true
	max_delete_files=20%
	max_delete_dirs=20%

        package=FreeBSD From FreeBSD.ORG
        site=ftp.FreeBSD.ORG
        remote_dir=/pub/FreeBSD
        local_dir=/home/ftp/pub/FreeBSD
        max_days=7
        flags_recursive+L       



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.950830105003.533A-100000>