# localhost schedules running packages patch and files for mirror.
# Version: 1.07 1999/07/27
#
# Copyright (C) 1999 Ian Maclaine-cross (i.maclaine-cross@unsw.edu.au)
# You may use this only under the conditions of the General Public
# License in file GPL.
#
# Most FTP sites generate a daily ls-lR.gz and a few also generate
# ls-lR.times and ls-lR.patch.gz files using scripts like my
# mkls-lR.  If you mirror a large directory tree daily, using:
#         mirror-master /etc/mirror/mm/<filename>
# can reduce FTP site load, download charges and mirror lag by
# efficiently using these files.  The file
# /usr/doc/mirror/README.ls-lR.gz explains why, when and how.
#
# localhost is your site's loopback interface. mirror talks to your 
# own FTP server without going out onto the network. Use it for learning
# how to use mirror-master and testing.
#
# Only root can use this parameter file.  Other users copy this file to 
# their own directory and change the directory below to one they can write to.
home=/var/log/mirror

# add a  -n  for testing as usual
mirror=/usr/bin/mirror -p$package /etc/mirror/packages/$site >$site:$package

# Copy and rename this file, comment out localhost below and add
# $site.patch and $site:$package statements when you are ready to use
# mirror-master.  e.g. by prefacing the "localhost..." lines with "#"
# and removing "#" from the "# ftp.debian.org..." lines below.

# Run one package at a time to get ls-lR files first.
max=1

# Tests mirror-master using loopback interface only so no network load
# if we mirror again after only 0 h.
localhost:patch 0 0

# At least 4 hours between checks on patch files.
# ftp.debian.org:patch 4 4


# Run 3 data packages simultaneously but list as many as you like as
# they will all get a go eventually. Sites should be listed in same
# order as above.
# Warning: mirroring simultaneously uses more memory than sequentially. 
max=3
localhost:files 0 0

# A 20 hour break if mirroring succeeded and a 5 hour break if it failed.
# ftp.debian.org:files 20 5


# When mirror-master stops, the files $home/localhost:patch and
# $home/localhost:files lists the mirror results for the above example. 




