# localhost schedules running packages patch and files for mirror. # Version: 1.09 2001/09/23 # # Copyright (C) 1999-2001 Ian Maclaine-cross # 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/ # can reduce FTP site load, download charges and mirror lag by # efficiently using these files. The file # /usr/share/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 or users who have write permission to the directory below can # use this parameter file. Other users may 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 "# debian-dists..." 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. # debian-dists:patch 4 4 # Do no put any ls-lR packages below or data packages above here. localhost:files 0 0 # 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 # A 20 hour break if mirroring succeeded and a 5 hour break if it failed. # This package could run at the same time as localhost:files. # debian-dists:debian 20 5 # When mirror-master stops, the files $home/localhost:patch and # $home/localhost:files lists the mirror results for the above example.