Maintaining the mirror
Unfortunately it prints horribly in netscape.
How I use mirror
Friendly sysadmins installed mirror
I made a file in Toronto called mackay_wol (Config file) contents:
Then to see what would happen if I ran mirror with this file,
mirror -n mackay_wol
To do it for real, and get feedback (-d),
mirror -d -d mackay_wol
Getting it done by cron
To see contents of crontab
The following does my mirror at 5.15 on Mondays
15 5 * * 1 rsh neuron.ai.toronto.edu "mirror -d mackay_wol | Mail mackay"
Other ideas I don't use:
The readme file from the software
Mirror is a package written in Perl that uses the ftp protocol to
duplicate a directory hierarchy between the machine it is run on and a
remote host. It avoids copying files unnecessarily by comparing the
file timestamps and sizes before transfering. Amongst other things
can optionally compress, gzip, and split files.
It was written for use by archive maintainers but can be used by
anyone wanting to transfer a lot of files over ftp.
You *may* need to change the values of $extra_path and $big_temp at
the start of mirror.pl. This is very unlikely but possible.
If your system limits the length of a file name a lot then also look for:
which is about 75% of the way thru mirror.pl. I only know of one site using
IF INSTALLING MIRROR JUST FOR ARCHIVE MAINTENANCE:
Normally pick a directory that you want to run mirror from. Unravel the tar
image in that directory. Edit the mirror.defaults to reflect local settings.
IF YOU ARE PLANNING ON MAKING MIRROR AVAILABLE AS A USER COMMAND:
Install into a publically accessible lib area (for example
/usr/local/lib/mirror) and add a symlink from a suitable bin area to
the mirror.pl in the lib directory. It this is not possible given
your local setup install all the .pl scripts into a lib area that will
be scanned by perl and install the binary in a suitable bin.
If h2ph has been run for your system then you should probably remove
socket.ph and use the one *meant* for your machine. If h2ph has not
been run then you should persuade your systems administrators to do
so. The contents of socket.ph are operating system specific and it is
possible that what works for me will not work for you.
A special note for Solaris 2.x users. The socket.ph created by h2ph doesn't
work. Install the socket.ph-solaris from this distribution instead.
There seems to be a problem with older versions of perl that causes
mirror to fail with the message 'fstype unix unknown'. If you experience
this then please upgrade your perl. The latest perl can be found in
src.doc.ic.ac.uk:gnu/perl-4.036.tar.gz (the exact version number may
The latest version of mirror is available from:
Mirror is part of a family of related programs. The others are ftpmail
and ftpcat. Ftpmail is a mail responder and ftpcat cats a remote file.
These are to be found in src.doc.ic.ac.uk:packages/ftpmail/
If you are interested in developing mirror (not just getting the
latest releases but actually doing work) there is a mailing list
firstname.lastname@example.org. Subscribe by emailing to
email@example.com. But please do NOT do this unless you
have the time to work on mirror.
Objects in a mirror are closer than you think!
David MacKay <firstname.lastname@example.org>
Last modified: Wed Dec 11 17:39:15 1996