#!/usr/local/bin/perl # Update, Copyright 1994, Weizmann Institute of Science, Leo Novik # (levn@wisdom.weizmann.ac.il) # # version 2, patch level 0 # # # # This script is intended to make mirroring ftp sites much simpler. # I am sure that something like this (and superior) already exists, but # this will do, I guess, and is fairly simple. # ######################################################################## # # Basics: #======================================================================= # # update.pl has two basic usages: # 1) list all the files that have changed (or been created) on the master site # since a given date (list directive) # 2) get all the files that have changed and update our mirror site. (get) # # The first usage is fot administrator's interest only and is not to be used in # the automatic update scripts. # # There are two ways to specify the data for the update: # 1) On the command line (-data option) # 2) In a timestamp file (-stamp option) # # After the program finishes, it leaves the date of the most recently modified # file on the server and the search and replace parameters (see below) in the # timestamp file (or, if run with -data, in the file # named 'timestamp'). Thus, an administrator may be sure that all files with # the modification date (in the server's timezone) earlier than the one stored # in the timestamp file are up-to-date. # ############################################################################## # # Usage: #============================================================================= # # update.pl
# [-date