From cs.toronto.edu!mackay Tue Dec 10 16:31:52 1996
From:	David Mackay <mackay@cs.toronto.edu>
To:	mackay@cs.toronto.edu




MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



NNNNAAAAMMMMEEEE
     mirror - mirror packages on remote	sites

SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
     mmmmiiiirrrrrrrroooorrrr [[[[ffffllllaaaaggggssss]]]] ----gggg_s_i_t_e::::_p_a_t_h_n_a_m_e
     mmmmiiiirrrrrrrroooorrrr [[[[ffffllllaaaaggggssss]]]] [[[[ccccoooonnnnffffiiiigggg----ffffiiiilllleeeessss]]]]

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     MMMMiiiirrrrrrrroooorrrr is a package written in Perl that uses the ftp proto-
     col  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 time-stamps	and sizes
     before transferring.  Amongst other things, it  can  option-
     ally 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 via ftp.

     Regardless	of how it is called, mmmmiiiirrrrrrrroooorrrr always  performs  the
     same  basic  steps.   It connects to the remote site, inter-
     nally builds a directory listing of the local target  direc-
     tory,  builds  one	 for the remote	directory, compares them,
     creates any subdirectories	required, transfers the	appropri-
     ate  files	 (setting their	time-stamps to match those on the
     remote  site),  creates  any  symbolic  links,  removes  any
     unnecessary objects and finally drops the connection.

     MMMMiiiirrrrrrrroooorrrr can	handle symbolic	links but not ordinary links.  It
     does  not	duplicate  owner  or  group  information.  If you
     require any of these options, use rrrrddddiiiisssstttt(1)	instead.

     MMMMiiiirrrrrrrroooorrrr is called in one of	two ways shown	in  the	 synopsis
     above.

     The first method is used to retrieve a remote directory into
     the current directory.  If	you are	mirroring a directory, it
     would be best to end the pathname in a slash  ('/')  so  the
     remote  recursive	listing	 is smaller or use the ----rrrr flag to
     suppress recursion	(see ----gggg	below).	 The mmmmiiiirrrrrrrroooorrrr....ddddeeeeffffaaaauuuullllttttssss file
     is	not used.

     In	the second method given	in the synopsis	above, a  minimal
     number of arguments are required and mmmmiiiirrrrrrrroooorrrr is controlled by
     the settings read from the	configuration files (or	 standard
     input).   If  a  file  named mmmmiiiirrrrrrrroooorrrr....ddddeeeeffffaaaauuuullllttttssss can be found in
     either the	directory the mmmmiiiirrrrrrrroooorrrr executable	is in or  in  the
     PPPPEEEERRRRLLLLLLLLIIIIBBBB  path, then it is loaded first. This is used to pro-
     vide common defaults for all config-files.

     MMMMiiiirrrrrrrroooorrrr was	written	to mirror remote Un*x archives,	 but  has
     grown (like topsy).




Sun Release 4.1	     Last change: Mirror 2.6			1






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



OOOOPPPPTTTTIIIIOOOONNNNSSSS
     ----dddd	  Enable debugging.  If	this argument is given more  than
	  once,	the debugging level will increase.  Currently the
	  maximum useful level is four.

     ----pppppackage
	  Only mirror the given	 package.   This  option  may  be
	  given	 multiple times	in which case all the given pack-
	  ages will be mirrored.  Without this option, all  pack-
	  ages	will  be  mirrored.   Package is a regexp matched
	  against the package variable.

     ----RRRRpackage
	  Similar to ----pppp	but skips all packages until  it  reaches
	  the given package.  Useful for restarting failed mirror
	  runs from where they left off.

     ----nnnn	  Do nothing except compare local and remote directories,
	  no  file  transfers are done.	 Sets debug level to two,
	  so you are shown a trace of what would be done.

     ----FFFF	  Use temporary	 ddddbbbbmmmm  files  for  the  information  about
	  files.   This	 is  useful  if	 you  mirror a very large
	  directory.  See the variable _u_s_e__f_i_l_e_s.

     ----ggggsite::::path
	  Get all files	on given site.	If path	matches	  .*/.+
	  then	it is the name of the directory	and the	last part
	  is the pattern of filenames to get.	If  path  matches
	    .*/	   then	it is the name of a directory and all its
	  contents are retrieved.  Otherwise path is the  pattern
	  to  be  used	in  '/'.   If  you use host:/fred, a full
	  directory listing of / on the	remote host will be done.
	  If  all  you	wanted	was the	contents of the	directory
	  /fred, specify host:/fred/.

     ----rrrr	  Equivalent to	----kkkk_r_e_c_u_r_s_i_v_e=false

     ----vvvv	  Print	the version details of mirror and exit.

     ----TTTT	  Force	the time stamps	of any local files to be reset to
	  be  the  same	 as the	remote files.  Normally	only used
	  when initialising a mirror area  using  existing  files
	  contents.

     ----UUUU[[[[filename]]]]
	  Record all uploads into the given  filename.	 Remember
	  that	mirror	changes	into _l_o_c_a_l__d_i_r to do its work, so
	  it should be a  full	pathname.   If	no  parameter  is
	  given, it defaults to	`pwd`/upload_log.day.month.year.

     ----kkkk_k_e_y=value



Sun Release 4.1	     Last change: Mirror 2.6			2






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



	  Override any default key/value.

     ----mmmm	  Equivalent to	----kkkk_m_o_d_e__c_o_p_y=true

     ----tttt	  Equivalent to	----kkkk_t_e_x_t__m_o_d_e=true

     ----ffff	  Equivalent to	----kkkk_f_o_r_c_e=true

     ----sssssite
	  Equivalent to	----kkkk_s_i_t_e=site

     ----uuuuuser
	  Equivalent to	----kkkk_r_e_m_o_t_e__u_s_e_r=user You are then	 prompted
	  for  a password, with	echo turned off.  The password is
	  used to set _r_e_m_o_t_e__p_a_s_s_w_o_r_d.

     ----LLLL	  Just generate	a pretty printed version of the	input and
	  exit.

     ----GGGG	  Get files from  the  remote  machine.	  The  local  and
	  remote  directories  have  to	 be  given on the command
	  line.	 (This option is no longer supported.)

     ----PPPP	  Put files onto  the  remote  machine.	  The  local  and
	  remote  directories  have  to	 be  given on the command
	  line.	 (This option is no longer supported.)

     ----CCCCfile
	  Specify config-files.	 Needed	to give	config-files with
	  ----PPPP  and  ----GGGG  options.	  (This	 option	is no longer sup-
	  ported.)

CCCCOOOONNNNFFFFIIIIGGGGUUUURRRRAAAATTTTIIIIOOOONNNN FFFFIIIILLLLEEEE
     Configuration files are parsed as a  series  of  statements.
     Blank  lines  and	lines  beginning with a	hash are ignored.
     Each statement is of the form
	  _k_e_y_w_o_r_d====value	or
	  _k_e_y_w_o_r_d++++value

     You  can  add  whitespace	before	the   keyword	and   the
     equals/plus.     Everything    immediately	  following   the
     equals/plus is the	value, including any leading or	 trailing
     whitespace.   The	equals	version	 sets the keyword to this
     value, while the plus version concatenates	 the  value  onto
     the end of	the default.

     A statement can be	continued over multiple	lines  by  ending
     all  lines	 except	 the  last,  with the character	ampersand
     ('&').  The line following	the ampersand, is appended to the
     current line with all leading whitespace removed.





Sun Release 4.1	     Last change: Mirror 2.6			3






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     Here is a	list  of  the  keywords	 and  their  values  with
     defaults	given  inside  square  brackets.   Those  options
     flagged with a star are not yet implemented.

     Although there are	a lot of keywords that can  be	set,  the
     built-in  defaults	 will  handle  most cases.  Normally only
     _p_a_c_k_a_g_e, _s_i_t_e, _r_e_m_o_t_e__d_i_r and _l_o_c_a_l__d_i_r need to be	set.

     _p_a_c_k_a_g_e	    Should be a	unique name for	the package to be
		    mirrored.

     _c_o_m_m_e_n_t	    Used in reports.

     _s_k_i_p	    Setting this entry causes this package to  be
		    skipped.  The value	is reported as the reason
		    for	skipping.  (It is easier than  commenting
		    the	entry out.)

     _s_i_t_e	    Site-name or IP address of the remote site.

     _r_e_m_o_t_e__d_i_r	    Remote  directory	to   mirror.   See   also
		    _r_e_c_u_r_s_e__h_a_r_d.

     _l_o_c_a_l__d_i_r	    Local directory.

     _r_e_m_o_t_e__u_s_e_r    Username to	use at remote site.  [anonymous]

     _r_e_m_o_t_e__p_a_s_s_w_o_r_d
		    Password   to    use    at	  remote    site.
		    [user@localhostname]

     _r_e_m_o_t_e__a_c_c_o_u_n_t Account name/password (to use at remote site,
		    after  logging  in	anonymously  (for systems
		    that use it).

     _g_e_t__p_a_t_t	    Regexp of remote pathnames to retrieve.  [.]

     _f_a_i_l_e_d__g_e_t_s__e_x_c_l
		    Regexp of messages to ignore,  when	 the  ftp
		    get	command	failed.

     _e_x_c_l_u_d_e__p_a_t_t   Regexp of remote pathnames to ignore.

     _u_p_d_a_t_e__l_o_c_a_l   Set	_g_e_t__p_a_t_t to be _l_o_c_a_l__d_i_r/*.  This is use-
		    ful	 if you	only want to mirror selected sub-
		    directories	of a remote archive.  [false]

     _l_o_c_a_l__i_g_n_o_r_e   Regexp of local pathnames to ignore.   Useful
		    to skip restricted local directories.

     _d_o__d_e_l_e_t_e_s	    Delete destination files  if  not  in  source
		    tree.  [false]



Sun Release 4.1	     Last change: Mirror 2.6			4






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     _d_e_l_e_t_e__p_a_t_t    Regexp of local pathnames to check for  dele-
		    tions.   Names  that  are not matched are not
		    checked.  The match	by _d_e_l_e_t_e__e_x_c_l is done to
		    all	files selected by this pattern.	 [.]

     _d_e_l_e_t_e__g_e_t__p_a_t_t
		    Set	_d_e_l_e_t_e__p_a_t_t to be _g_e_t__p_a_t_t.  [false]

     _d_e_l_e_t_e__e_x_c_l    Regexp of local pathnames to never delete.

     _s_a_v_e__d_e_l_e_t_e_s   Save local files into  _s_a_v_e__d_i_r  rather  than
		    deleting.  [false]

     _s_a_v_e__d_i_r	    Where local	files no longer	 on  remote  site
		    are	transferred to.	 [Old]

     _m_a_x__d_e_l_e_t_e__f_i_l_e_s
		    If there are more than  this  many	files  to
		    delete,  do	 not  delete,  just warn.  If the
		    value ends with percent character the this is
		    the	 percentage of files before deletion dis-
		    abled.  [10%]

     _m_a_x__d_e_l_e_t_e__d_i_r_s
		    If there are more than this	many  directories
		    to	delete,	do not delete, just warn.  If the
		    value ends with percent character the this is
		    the	percentage of directories before deletion
		    disabled.  [10%]

     _m_a_x__d_a_y_s	    If >0, ignore  files  older	 than  this  many
		    days.    Any   ignored   files  will  not  be
		    transferred	or deleted.  [0]

     _s_t_o_r_e__r_e_m_o_t_e__l_i_s_t_i_n_g
		    Local  pathname  where  remote  listings  are
		    kept.   Useful  if you have	a slow network or
		    want to perform  several  operations  on  the
		    same  package  without  retrieving	the index
		    every time.

     _s_p_l_i_t__m_a_x	    If >0 and the size of  the	file  is  greater
		    than  this,	the file is split up to	be stored
		    locally    (filename    must    also    match
		    _s_p_l_i_t__p_a_t_t).  [0]

     _s_p_l_i_t__p_a_t_t	    regexp of remote pathnames to split	up before
		    storing locally.

     _s_p_l_i_t__c_h_u_n_k    Size of chunks to split files into.	 [102400]

     _l_s__l_R__f_i_l_e	    Remote file	containing ls-lR,  otherwise  run



Sun Release 4.1	     Last change: Mirror 2.6			5






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



		    remote ls.

     _l_o_c_a_l__l_s__l_R__f_i_l_e
		    Local file containing  ls-lR,  otherwise  use
		    remote _l_s__l_R__f_i_l_e.	This is	useful when first
		    mirroring a	large package.

     _r_e_c_u_r_s_i_v_e	    Do subdirectories as well.	[true]

     _r_e_c_u_r_s_e__h_a_r_d   Have to generate remote ls by doing	 cwd  and
		    ls	for  each  subdirectory.   In  this  case
		    remote_dir must be absolute	(begin with a  /)
		    not	 relative.  Use	the pwd	command	in ftp to
		    find the path for  the start  of  the  remote
		    archive area.  (Not	available if _r_e_m_o_t_e__f_s is
		    vms.)  [false]

     _f_l_a_g_s__r_e_c_u_r_s_i_v_e
		    Flags to send to remote ls to do a	recursive
		    listing.

     _f_l_a_g_s__n_o_n_r_e_c_u_r_s_i_v_e
		    Flags to send to  remote  ls  to  do  a  non-
		    recursive listing.

     _r_e_m_o_t_e__f_s	    Remote file	store type.  Handles  uuuunnnniiiixxxx,  ddddllllssss,
		    nnnneeeettttwwwwaaaarrrreeee,  vvvvmmmmssss,  ddddoooossssffffttttpppp,  mmmmaaaaccccoooossss,  llllssssppppaaaarrrrsssseeee  and
		    iiiinnnnffffoooommmmaaaacccc.  See the  FILESTORES  section  below
		    for	more details.  [unix]

     _v_m_s__k_e_e_p__v_e_r_s_i_o_n_s
		    When mirroring vms files,  keep  the  version
		    numbers.  If false,	the versions are stripped
		    off	and the	only the base filenames	are kept.
		    [true]

     _v_m_s__x_f_e_r__t_e_x_t  Pattern of vms files to transfer in	TEXT mode
		    (case insensitive).

     _n_a_m_e__m_a_p_p_i_n_g_s  Remote to local pathname mappings (a  perl	ssss
		    command, eg. s:old:new:).

     _e_x_t_e_r_n_a_l__m_a_p_p_i_n_g
		    External routine to	perform	name mappings.

     _g_e_t__n_e_w_e_r	    Get	the remote file	if its date is newer than
		    local.  [true]

     _g_e_t__s_i_z_e__c_h_a_n_g_e
		    Get	the file if the	size  is  different  from
		    local.  If a file is compressed when fetched,
		    the	size is	automatically ignored.	[true]



Sun Release 4.1	     Last change: Mirror 2.6			6






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     _c_o_m_p_r_e_s_s__p_a_t_t  Regexp of files to	compress  before  storing
		    locally.  See _g_e_t__s_i_z_e__c_h_a_n_g_e.

     _c_o_m_p_r_e_s_s__e_x_c_l  Regexp of files not	to compress (case  insen-
		    sitive).  [\.(z|gz)$]

     _c_o_m_p_r_e_s_s__p_r_o_g  Program to compress	files.	 If  set  to  the
		    word  compress or gzip, the	full pathname and
		    correct _c_o_m_p_r_e_s_s__s_u_f_f_i_x will automatically be
		    set.   When	 using	gzip,  level  -9 is used.
		    Note that _c_o_m_p_r_e_s_s__s_u_f_f_i_x can be reset  to	a
		    non-standard   value   by  setting	it  after
		    _c_o_m_p_r_e_s_s__p_r_o_g.  [compress]

     _c_o_m_p_r_e_s_s__s_u_f_f_i_x
		    Character(s) the compress program appends  to
		    files.   If	 _c_o_m_p_r_e_s_s__p_r_o_g	is compress, this
		    defaults to	.Z.  If	 _c_o_m_p_r_e_s_s__p_r_o_g	is  gzip,
		    this defaults to .gz.

     _c_o_m_p_r_e_s_s__c_o_n_v__p_a_t_t
		    If _c_o_m_p_r_e_s_s__p_r_o_g is	gzip, files matching this
		    pattern  are  uncompressed and gzip'ed before
		    storing locally.  Compression  conversion  is
		    only meant to do compress to gzip conversion.
		    [(\.Z|\.taz)$]

     _c_o_m_p_r_e_s_s__c_o_n_v__e_x_p_r
		    Perl  expression  to  convert   suffix   from
		    compress	     to	       gzip	   style.
		    [s/\.Z$/\.gz/;s/\.taz$/\.tgz/]

     _c_o_m_p_r_e_s_s__s_i_z_e__f_l_o_o_r
		    Only compress files	smaller	than  this  size.
		    [0]

     _f_o_r_c_e__t_i_m_e_s    Force local	 times	to  match  remote  times.
		    [yes]

     _r_e_t_r_y__c_a_l_l	    If initial connect fails,  retry  ONCE  after
		    ONE	 minute.   This	 is to handle sites which
		    reverse lookup the incoming	 host  but  some-
		    times timeout on the first attempt.	 [yes]

     _u_p_d_a_t_e__l_o_g	    Filename, relative	to  _l_o_c_a_l__d_i_r,	where  an
		    update report is to	be kept.

     _m_a_i_l__t_o	    Mail a log of the work  done  to  this  comma
		    separated list of people.

     _u_s_e_r	    User name or uid to	give to	local pathnames.




Sun Release 4.1	     Last change: Mirror 2.6			7






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     _g_r_o_u_p	    Group name or gid to give to local pathnames.

     _f_i_l_e__m_o_d_e	    Mode to give files created locally.	 [0444]

     _d_i_r__m_o_d_e	    Mode to  give  directories	created	 locally.
		    [0755]

     _t_i_m_e_o_u_t	    Timeout ftp	requests after this many seconds.
		    [40]

     _f_t_p__p_o_r_t	    Port number	of remote ftp daemon.  [21]

     _p_r_o_x_y	    Set	to 1 to	use proxy ftp service.	[0]

     _p_r_o_x_y__f_t_p__p_o_r_t Port  number  of  proxy-service  ftp  daemon.
		    This  value	 should	 be  changed depending on
		    which proxy	library	you are	using.	[4514]

     _p_r_o_x_y__g_a_t_e_w_a_y  Name of proxy-service, may also  be	 supplied
		    by	the  environment  variable IIIINNNNTTTTEEEERRRRNNNNEEEETTTT____HHHHOOOOSSSSTTTT.
		    [internet-gateway]

     _u_s_i_n_g__s_o_c_k_s    Set	to 1 if	you are	using a	SOCKS version  of
		    perl.  [0]

     _p_a_s_s_i_v_e__f_t_p    Set	to 1 if	you want to use	the  PASV  exten-
		    sion  of the FTP protocol.	Especially useful
		    with firewalls, other proxy	FTP servers,  and
		    the	variable _u_s_i_n_g__s_o_c_k_s.  [0]

     _m_o_d_e__c_o_p_y	    Flag indicating if we need to copy	the  mode
		    bits.  [false]

     _i_n_t_e_r_a_c_t_i_v_e    A non-batch	transfer.  Implied  by	----gggg  flag.
		    [false]

     _t_e_x_t__m_o_d_e	    If true, files are transferred in text  mode.
		    Un*x  prefers  binary so that is the default.
		    [false]

     _f_o_r_c_e	    If	true,  all  files  will	 be   transferred
		    regardless of size or time-stamp.  [false]

     _g_e_t__f_i_l_e	    Perform get, not put by default.  [true]

     _v_e_r_b_o_s_e	    Verbose messages.  [false]

     _d_e_l_e_t_e__s_o_u_r_c_e  Delete the source files and	directories  once
		    transferred.   (This is no longer supported.)
		    [false]

     _d_i_s_c_o_n_n_e_c_t	    Disconnect	from  remote  site  at	 end   of



Sun Release 4.1	     Last change: Mirror 2.6			8






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



		    package.  [false]

     _m_a_i_l__p_r_o_g	    Program called to send to the  _m_a_i_l__t_o  list.
		    May	 be  passed  the  argument  _m_a_i_l__s_u_b_j_e_c_t.
		    Defaults to	mailx, Mail, mail or whatever  is
		    available on your system.

     _m_a_i_l__s_u_b_j_e_c_t   mirror update

     _h_o_s_t_n_a_m_e	    Mirror  automatically  skips  packages  whose
		    site variable matches this host.  Defaults to
		    the	local hostname.

     _u_s_e__f_i_l_e_s	    Put	the associative	arrays that  mirror  uses
		    into tmp files.  [false]

     _u_m_a_s_k	    Do not allow setuid	things across by default.
		    [07000]

     _u_s_e__t_i_m_e_l_o_c_a_l  Time-stamp files  to  local	 time  zone.   If
		    false, the time zone is set	to offset 0 (com-
		    patible  with  older  versions  of	 mmmmiiiirrrrrrrroooorrrr).
		    [true]

     _r_e_m_o_t_e__g_r_o_u_p   If present set the remote 'site group'.

     _r_e_m_o_t_e__g_p_a_s_s   If present set the remote 'site gpass'.

     _r_e_m_o_t_e__i_d_l_e    If not null, try  and  set	the  remote  idle
		    timer to this.

     _m_a_k_e__b_a_d__s_y_m_l_i_n_k_s
		    If true, symlinks will  be	made  to  invalid
		    (non-existent)  pathnames.	 Under older ver-
		    sions this defaulted to true.  [false]

     _f_o_l_l_o_w__l_o_c_a_l__s_y_m_l_i_n_k_s
		    Regexp of pathnames	that should  be	 followed
		    to the file	or directory they point	at.  This
		    makes local	symlinks invisible to mmmmiiiirrrrrrrroooorrrr.

     _g_e_t__m_i_s_s_i_n_g    Really get files.  When set	 to  false,  only
		    deletions  and symlinking will be done.  Used
		    to delete expired files older  than	 _m_a_x__d_a_y_s
		    without retrieving older files.  [true]

     Each group	of keywords defines how	to  mirror  a  particular
     package  and  should  begin with a	unique _p_a_c_k_a_g_e line.  The
     package name is used in report  generation	 and  by  the  ----pppp
     argument,	so  pick  something mnemonic.  The minimum needed
     for each  package	is  the	 _p_a_c_k_a_g_e,  _s_i_t_e,  _r_e_m_o_t_e__d_i_r  and
     _l_o_c_a_l__d_i_r.	  On  finding  a  package  line,  all the default



Sun Release 4.1	     Last change: Mirror 2.6			9






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     values are	reset.

     If	the package name is ddddeeeeffffaaaauuuullllttttssss, then no site is  contacted,
     but  the  default values given for	any keywords are changed.
     Normally all the defaults are in  the  file  mmmmiiiirrrrrrrroooorrrr....ddddeeeeffffaaaauuuullllttttssss
     which  will  be  automatically  loaded  before  any  package
     details.

	  #### SSSSaaaammmmpppplllleeee mmmmiiiirrrrrrrroooorrrr....ddddeeeeffffaaaauuuullllttttssss
	  ppppaaaacccckkkkaaaaggggeeee====ddddeeeeffffaaaauuuullllttttssss
	       #### TTTThhhheeee LLLLOOOOCCCCAAAALLLL hhhhoooossssttttnnnnaaaammmmeeee ---- iiiiffff nnnnooootttt tttthhhheeee ssssaaaammmmeeee aaaassss ````hhhhoooossssttttnnnnaaaammmmeeee```` rrrreeeettttuuuurrrrnnnnssss
	       #### ((((IIII aaaaddddvvvveeeerrrrttttiiiisssseeee tttthhhheeee nnnnaaaammmmeeee ssssrrrrcccc....ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk	bbbbuuuutttt tttthhhheeee	mmmmaaaacccchhhhiiiinnnneeee	iiiissss
	       ####  rrrreeeeaaaallllllllyyyy ppppuuuuffffffffiiiinnnn....ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk....))))
	       hhhhoooossssttttnnnnaaaammmmeeee====ssssrrrrcccc....ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk
	       #### KKKKeeeeeeeepppp aaaallllllll llllooooccccaaaallll____ddddiiiirrrrssss rrrreeeellllaaaattttiiiivvvveeee ttttoooo hhhheeeerrrreeee
	       llllooooccccaaaallll____ddddiiiirrrr====////ppppuuuubbbblllliiiicccc////
	       rrrreeeemmmmooootttteeee____ppppaaaasssssssswwwwoooorrrrdddd====uuuukkkkuuuuuuuugggg----ssssoooofffftttt@@@@ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk

     If	the package is not ddddeeeeffffaaaauuuullllttttssss, then mmmmiiiirrrrrrrroooorrrr will perform the
     following	steps.	 Unless	 an internal failure is	detected,
     any error will cause the current package to be  skipped  and
     the next one tried.

     If	mmmmiiiirrrrrrrroooorrrr is not already connected	 to  the  site,	 it  will
     disconnect	 from  any  site  it  is already connected to and
     attempt to	connect	to the remote site's ffffttttpppp daemon.  It will
     then  login  using	 the  given remote username and	password.
     Once connected, mmmmiiiirrrrrrrroooorrrr turns on binary mode transfers.  Next
     it	 changes to the	given local directory and scans	it to get
     the details of the	 local	files  that  already  exist.   If
     necessary,	 the  local directory will be created.	Once this
     is	completed, the remote directory	is scanned in  a  similar
     fashion.	MMMMiiiirrrrrrrroooorrrr does this by changing to	the remote direc-
     tory  and	running	 the  ftp  LIST	 command,   passing   the
     _f_l_a_g_s__r_e_c_u_r_s_i_v_e  options  or _f_l_a_g_s__n_o_n_r_e_c_u_r_s_i_v_e depending on
     the value of _r_e_c_u_r_s_i_v_e. Alternatively a file containing  the
     directory	listing	 may  be retrieved.  Each remote pathname
     will have any specified mappings performed	on it to create	a
     local   pathname.	  Then	 any   checks  specified  by  the
     _e_x_c_l_u_d_e__p_a_t_t, _m_a_x__d_a_y_s, _g_e_t__n_e_w_e_r and  _g_e_t__s_i_z_e__c_h_a_n_g_e  key-
     words  are	 applied  on  names  of	 files or symlinks.  Only
     _e_x_c_l_u_d_e__p_a_t_t checking is applied to directories.

     The above creates a list of all required  remote  files  and
     the local pathnames to store them in.

     Once the directory	listing	is completed, all required  files
     are  fetched  from	 the  remote  site  into their local path
     names.  This is done by retrieving	the file into a	temporary
     file  in  the  target directory.  If required, the	temporary
     file is compressed,  gzip'ed  or  split  (or  compressed  or
     gzip'ed and then split).  The temporary file is renamed when



Sun Release 4.1	     Last change: Mirror 2.6		       10






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     the transfer is successful.

FFFFIIIILLLLEEEESSSSTTTTOOOORRRREEEESSSS
     Mirror uses the remote directory listing to  work	out  what
     files  are	 available.  Mirror was	originally targetted con-
     nect to unix ftp daemons using a standard	_l_s  command.   To
     use a unix	host with a non-standard ls or a non unix host it
     is	necessary to set the _r_e_m_o_t_e__f_s variable	to match the kind
     of	 directory  listing that will be returned.  There is some
     interaction between _r_e_m_o_t_e__f_s and other variables in partic-
     ular _f_l_a_g_s__r_e_c_u_r_s_i_v_e, _r_e_c_u_r_s_e__h_a_r_d	and _g_e_t__s_i_z_e__c_h_a_n_g_e.  The
     following sub sections show examples of the results of  run-
     ning the ftp _d_i_r command on the various kinds of archive and
     recommendations for related variables.  With some	unusually
     setups  archive  you  may	have to	vary from the recommended
     variable setups.

  rrrreeeemmmmooootttteeee____ffffssss====uuuunnnniiiixxxx
	  ttttoooottttaaaallll	66665555
	  ----rrrrwwww----rrrr--------rrrr-------- 1111 uuuukkkkuuuuuuuugggg  uuuukkkkuuuuuuuugggg   2222222244445555 JJJJuuuunnnn 22228888 22220000::::00006666	RRRREEEEAAAADDDDMMMMEEEE
	  ----rrrrwwww----rrrr--------rrrr-------- 1111 uuuukkkkuuuuuuuugggg  uuuukkkkuuuuuuuugggg  66661111999944449999 JJJJuuuunnnn 22229999 11119999::::11113333	mmmmiiiirrrrrrrroooorrrr----2222....1111....ttttaaaarrrr....ggggzzzz

     This is the default and you  should  not  normally	 have  to
     reset any other variables.

  rrrreeeemmmmooootttteeee____ffffssss====ddddllllssss
	  00000000iiiinnnnddddeeeexxxx....ttttxxxxtttt	   111188889999999911116666
	  0000rrrreeeeaaaaddddmmmmeeee	     5555777799993333
	  1111____xxxx////			====  OOOOSSSS////2222	1111....xxxx----ssssppppeeeecccciiiiffffiiiicccc ffffiiiilllleeeessss

     This is an	_l_s variant used	on some	unix archives.	 It  pro-
     vides  descriptions  of  known  items  in	the  listing. Set
     _f_l_a_g_s__r_e_c_u_r_s_i_v_e to	-dtR.

  rrrreeeemmmmooootttteeee____ffffssss====nnnneeeettttwwwwaaaarrrreeee
	  ---- [[[[RRRR----------------FFFF--------]]]] jjjjrrrrdddd		    1111666644446666       MMMMaaaayyyy 00007777 22221111::::44443333    iiiinnnnddddeeeexxxx
	  dddd [[[[RRRR----------------FFFF--------]]]] jjjjrrrrdddd		     555511112222       SSSSeeeepppp 00009999 11110000::::55552222    nnnneeeettttwwwwiiiirrrreeee
	  dddd [[[[RRRR----------------FFFF--------]]]] jjjjrrrrdddd		     555511112222       SSSSeeeepppp 00002222 00001111::::33331111    ppppkkkkttttddddrrrrvvvvrrrr
	  dddd [[[[RRRRWWWWCCCCEEEE----FFFF--------]]]] jjjjrrrrdddd		     555511112222       SSSSeeeepppp 00004444 11110000::::55555555    iiiinnnnccccoooommmmiiiinnnngggg

     or

	  ----[[[[RRRR----------------FFFF--------]]]] 1111	jjjjrrrrdddd		     1111666644446666	MMMMaaaayyyy 00007777 22221111::::44443333	iiiinnnnddddeeeexxxx
	  dddd[[[[RRRR----------------FFFF--------]]]] 1111	jjjjrrrrdddd		      555511112222	SSSSeeeepppp 00009999 11110000::::55552222	nnnneeeettttwwwwiiiirrrreeee
	  dddd[[[[RRRR----------------FFFF--------]]]] 1111	jjjjrrrrdddd		      555511112222	SSSSeeeepppp 00002222 00001111::::33331111	ppppkkkkttttddddrrrrvvvvrrrr

     This is used by Novell archives.  Set _r_e_c_u_r_s_e__h_a_r_d	 to  true
     and set _f_l_a_g_s__r_e_c_u_r_s_i_v_e to	be nothing.  See also _r_e_m_o_t_e__d_i_r.

  ddddoooossssffffttttpppp
	  00000000----iiiinnnnddddeeeexxxx....ttttxxxxtttt	6666,,,,444477771111 11113333::::55554444  7777////22220000////99993333   aaaallllaaaabbbbaaaammmmaaaa....ttttxxxxtttt   1111,,,,222244446666 22223333::::22229999  5555////00008888////99992222
	  aaaallllaaaasssskkkkaaaa....ttttxxxxtttt	  888877773333 22223333::::22229999  5555////00008888////99992222   aaaallllbbbbeeeerrrrttttaaaa....ttttxxxxtttt   2222,,,,111166662222 22223333::::22229999  5555////00008888////99992222



Sun Release 4.1	     Last change: Mirror 2.6		       11






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     dosftp is for an ftp daemon on dos	boxes.	Set  _r_e_c_u_r_s_e__h_a_r_d
     to	 true  and  set	 _f_l_a_g_s__r_e_c_u_r_s_i_v_e  to  nothing.	 See also
     _r_e_m_o_t_e__d_i_r.

  rrrreeeemmmmooootttteeee____ffffssss====mmmmaaaaccccoooossss
	  ----------------------------rrrr--------	  0000	 111122227777   111122227777 AAAAuuuugggg 22227777 11113333::::55553333	!!!!GGGGoooopppphhhheeeerrrr	LLLLiiiinnnnkkkkssss
	  ddddrrrrwwwwxxxxrrrrwwwwxxxxrrrr----xxxx	      ffffoooollllddddeeeerrrr	33332222 SSSSeeeepppp	9999 11116666::::33330000	FFFFAAAAQQQQ
	  ddddrrrrwwwwxxxxrrrrwwwwxxxx----wwwwxxxx	      ffffoooollllddddeeeerrrr	 0000 SSSSeeeepppp	9999 00009999::::55559999	iiiinnnnccccoooommmmiiiinnnngggg

     macos is for one of Macintosh ftp daemon variants.	 Although
     the  output  is  similar  to unix it the unix _r_e_m_o_t_e__f_s type
     cannot cope with it because there are three file  sizes  for
     each  file.   Set_r_e_c_u_r_s_e__h_a_r_d  to	true,  _f_l_a_g_s__r_e_c_u_r_s_i_v_e to
     nothing, _g_e_t__s_i_z_e__c_h_a_n_g_e to false and _c_o_m_p_r_e_s_s__p_a_t_t to noth-
     ing  (this	 last  setting	is  due	to the unusual file names
     upsetting	the  shell  used  to  run  compress).	See  also
     _r_e_m_o_t_e__d_i_r.

  rrrreeeemmmmooootttteeee____ffffssss====vvvvmmmmssss
	  UUUUSSSSEEEERRRRSSSS::::[[[[AAAANNNNOOOONNNNYYYYMMMMOOOOUUUUSSSS....PPPPUUUUBBBBLLLLIIIICCCC]]]]

	  1111----RRRREEEEAAAADDDDMMMMEEEE....FFFFIIIIRRRRSSSSTTTT;;;;11113333	9999  11114444----JJJJUUUUNNNN----1111999999993333 11113333::::00009999 [[[[AAAANNNNOOOONNNNYYYYMMMMOOOOUUUUSSSS]]]] ((((RRRRWWWWEEEE,,,,RRRRWWWWEEEE,,,,RRRREEEE,,,,RRRREEEE))))
	  PPPPAAAALLLLTTTTEEEERRRR....DDDDIIIIRRRR;;;;1111		1111  11118888----JJJJAAAANNNN----1111999999993333 11111111::::55556666 [[[[AAAANNNNOOOONNNNYYYYMMMMOOOOUUUUSSSS]]]] ((((RRRRWWWWEEEE,,,,RRRRWWWWEEEE,,,,RRRREEEE,,,,RRRREEEE))))
	  PPPPRRRREEEESSSSSSSS----RRRREEEELLLLEEEEAAAASSSSEEEESSSS....DDDDIIIIRRRR;;;;1111
				1111  11111111----AAAAUUUUGGGG----1111999999992222 22220000::::00005555 [[[[AAAANNNNOOOONNNNYYYYMMMMOOOOUUUUSSSS]]]] ((((RRRRWWWWEEEE,,,,RRRRWWWWEEEE,,,,,,,,))))


     alternatively:

	  [[[[VVVVMMMMSSSSSSSSEEEERRRRVVVV....FFFFIIIILLLLEEEESSSS]]]]AAAALLLLAAAARRRRMMMM....DDDDIIIIRRRR;;;;1111	  1111////3333	       5555----MMMMAAAARRRR----1111999999993333 11118888::::00009999
	  [[[[VVVVMMMMSSSSSSSSEEEERRRRVVVV....FFFFIIIILLLLEEEESSSS]]]]AAAALLLLAAAARRRRMMMM....TTTTXXXXTTTT;;;;1111	  1111////3333	       4444----FFFFEEEEBBBB----1111999999993333 11112222::::22220000

     Set _f_l_a_g_s__r_e_c_u_r_s_i_v_e to '[...]' and	_g_e_t__s_i_z_e__c_h_a_n_g_e	to false.
     _r_e_c_u_r_s_e__h_a_r_d  is  not  available  with  vms.   See	 also the
     _v_m_s__k_e_e_p__v_e_r_s_i_o_n_s and _v_m_s__x_f_e_r__t_e_x_t variables.

  rrrreeeemmmmooootttteeee____ffffssss====iiiinnnnffffoooommmmaaaacccc
     This  is  a  special  just	 meant	to  handle   the   sumex-
     aim.stanford.edu  info-mac	 directory listing stored on that
     archive in	help/all-files.	 _r_e_c_u_r_s_e__h_a_r_d should  be  set  to
     true.

  rrrreeeemmmmooootttteeee____ffffssss====ddddoooossssiiiisssshhhh
     This is for a DOS/Windows FTP server with a faintly DOS like
     output

	  00003333----00004444----99994444  00008888::::44445555PPPPMMMM	  <<<<DDDDIIIIRRRR>>>>		 ....
	  00003333----00004444----99994444  00008888::::44445555PPPPMMMM	  <<<<DDDDIIIIRRRR>>>>		 ........
	  00003333----00004444----99994444  00009999::::55558888AAAAMMMM		    9999777711118888 CCCCoooonnnndddduuuuiiiitttt
	  00003333----00004444----99994444  00009999::::55559999AAAAMMMM		    8888777744445555 EEEEvvvveeee





Sun Release 4.1	     Last change: Mirror 2.6		       12






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     _r_e_c_u_r_s_e__h_a_r_d should be set	to true	 and  _f_l_a_g_s__r_e_c_u_r_s_i_v_e  to
     nothing.

  rrrreeeemmmmooootttteeee____ffffssss====llllssssppppaaaarrrrsssseeee
     Allow reparsing of	the  listing  generated	 by  mirror  with
     debugging	turned	to  a  high level.  Meant only for mirror
     wizards.

EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
     Here  is  the  mirror.defaults  file  from	 the  archive  on
     src.doc.ic.ac.uk:

	  #### TTTThhhhiiiissss iiiissss tttthhhheeee	ddddeeeeffffaaaauuuulllltttt	mmmmiiiirrrrrrrroooorrrr sssseeeettttttttiiiinnnnggggssss	uuuusssseeeedddd bbbbyyyy	mmmmyyyy ssssiiiitttteeee::::
	  #### ssssrrrrcccc....ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk ((((111144446666....111166669999....2222....1111))))
	  #### TTTThhhhiiiissss iiiissss hhhhoooommmmeeee ooooffff tttthhhheeee	UUUUKKKKUUUUUUUUGGGG SSSSooooffffttttwwwwaaaarrrreeee DDDDiiiissssttttrrrriiiibbbbuuuuttttiiiioooonnnn SSSSeeeerrrrvvvviiiicccceeee

	  ppppaaaacccckkkkaaaaggggeeee====ddddeeeeffffaaaauuuullllttttssss
	       #### TTTThhhheeee LLLLOOOOCCCCAAAALLLL hhhhoooossssttttnnnnaaaammmmeeee ---- iiiiffff nnnnooootttt tttthhhheeee ssssaaaammmmeeee aaaassss ````hhhhoooossssttttnnnnaaaammmmeeee````
	       #### ((((IIII aaaaddddvvvveeeerrrrttttiiiisssseeee tttthhhheeee nnnnaaaammmmeeee ssssrrrrcccc....ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk	bbbbuuuutttt tttthhhheeee	mmmmaaaacccchhhhiiiinnnneeee	iiiissss
	       ####  rrrreeeeaaaallllllllyyyy ppppuuuuffffffffiiiinnnn....ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk))))
	       hhhhoooossssttttnnnnaaaammmmeeee====ssssrrrrcccc....ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk
	       #### KKKKeeeeeeeepppp aaaallllllll llllooooccccaaaallll____ddddiiiirrrrssss rrrreeeellllaaaattttiiiivvvveeee ttttoooo hhhheeeerrrreeee
	       llllooooccccaaaallll____ddddiiiirrrr====////ppppuuuubbbblllliiiicccc////
	       rrrreeeemmmmooootttteeee____ppppaaaasssssssswwwwoooorrrrdddd====uuuukkkkuuuuuuuugggg----ssssoooofffftttt@@@@ddddoooocccc....iiiicccc....aaaacccc....uuuukkkk
	       mmmmaaaaiiiillll____ttttoooo====
	       #### DDDDoooonnnn''''tttt mmmmiiiirrrrrrrroooorrrr ffffiiiilllleeee mmmmooooddddeeeessss....  SSSSeeeetttt aaaallllllll ddddiiiirrrrssss////ffffiiiilllleeeessss ttttoooo tttthhhheeeesssseeee
	       ddddiiiirrrr____mmmmooooddddeeee====0000777755555555
	       ffffiiiilllleeee____mmmmooooddddeeee====0000444444444444
	       #### BBBByyyy ddddeeeeffffaaaauuuulllltttt,,,, ffffiiiilllleeeessss aaaarrrreeee oooowwwwnnnneeeedddd bbbbyyyy	rrrrooooooootttt....zzzzeeeerrrroooo
	       uuuusssseeeerrrr====0000
	       ggggrrrroooouuuupppp====0000
	  ####    #### KKKKeeeeeeeepppp aaaa	lllloooogggg ffffiiiilllleeee iiiinnnn eeeeaaaacccchhhh uuuuppppddddaaaatttteeeedddd ddddiiiirrrreeeeccccttttoooorrrryyyy
	  ####    uuuuppppddddaaaatttteeee____lllloooogggg====....mmmmiiiirrrrrrrroooorrrr
	       uuuuppppddddaaaatttteeee____lllloooogggg====
	       #### DDDDoooonnnn''''tttt oooovvvveeeerrrrwwwwrrrriiiitttteeee mmmmyyyy mmmmiiiirrrrrrrroooorrrr lllloooogggg wwwwiiiitttthhhh tttthhhheeee	rrrreeeemmmmooootttteeee oooonnnneeee....
	       #### DDDDoooonnnn''''tttt rrrreeeettttrrrriiiieeeevvvveeee	aaaannnnyyyy ooooffff tttthhhheeeeiiiirrrr mmmmiiiirrrrrrrroooorrrr tttteeeemmmmppppoooorrrraaaarrrryyyy ffffiiiilllleeeessss....
	       #### DDDDoooonnnn''''tttt ttttoooouuuucccchhhh aaaannnnyyyytttthhhhiiiinnnngggg wwwwhhhhoooosssseeee nnnnaaaammmmeeee bbbbeeeeggggiiiinnnnssss	wwwwiiiitttthhhh aaaa ssssppppaaaacccceeee!!!!
	       #### nnnnoooorrrr aaaannnnyyyy FFFFSSSSPPPP oooorrrr	ggggoooopppphhhheeeerrrr ffffiiiilllleeeessss............
	       eeeexxxxcccclllluuuuddddeeee____ppppaaaatttttttt====((((^^^^||||////))))((((....mmmmiiiirrrrrrrroooorrrr$$$$||||....iiiinnnn........****....$$$$||||MMMMIIIIRRRRRRRROOOORRRR....LLLLOOOOGGGG||||####....****####||||....FFFFSSSSPPPP||||....ccccaaaacccchhhheeee||||....zzzziiiippppppppeeeedddd||||lllloooosssstttt++++ffffoooouuuunnnndddd////|||| ))))
	       #### TTTTrrrryyyy ttttoooo	ccccoooommmmpppprrrreeeessssssss eeeevvvveeeerrrryyyytttthhhhiiiinnnngggg
	       ccccoooommmmpppprrrreeeessssssss____ppppaaaatttttttt====....
	       ccccoooommmmpppprrrreeeessssssss____pppprrrroooogggg====ccccoooommmmpppprrrreeeessssssss
	       #### DDDDoooonnnn''''tttt ccccoooommmmpppprrrreeeessssssss	iiiinnnnffffoooorrrrmmmmaaaattttiiiioooonnnn ffffiiiilllleeeessss,,,, ffffiiiilllleeeessss tttthhhhaaaatttt ddddoooonnnn''''tttt bbbbeeeennnneeeeffffiiiitttt ffffrrrroooommmm
	       #### bbbbeeeeiiiinnnngggg ccccoooommmmpppprrrreeeesssssssseeeedddd,,,, ffffiiiilllleeeessss tttthhhhaaaatttt tttteeeellllllll ffffttttppppdddd,,,, ggggoooopppphhhheeeerrrr,,,, wwwwaaaaiiiissss............ ttttoooo ddddoooo tttthhhhiiiinnnnggggssss,,,,
	       #### tttthhhheeee ssssoooouuuurrrrcccceeeessss ffffoooorrrr ccccoooommmmpppprrrreeeessssssssiiiioooonnnn pppprrrrooooggggrrrraaaammmmssss............
	       #### ((((NNNNooootttteeee tttthhhhiiiissss iiiissss tttthhhheeee oooonnnnllllyyyy	rrrreeeeggggeeeexxxxpppp tttthhhhaaaatttt iiiissss ccccaaaasssseeee iiiinnnnsssseeeennnnssssiiiittttiiiivvvveeee....))))
	       ccccoooommmmpppprrrreeeessssssss____eeeexxxxccccllll++++||||^^^^....nnnnoooottttaaaarrrr$$$$||||----zzzz||||....ttttaaaazzzz$$$$||||....ttttaaaarrrr....ZZZZ||||....aaaarrrrcccc$$$$||||....zzzziiiipppp$$$$||||....llllzzzzhhhh$$$$||||....zzzzoooooooo$$$$||||....eeeexxxxeeee$$$$||||....llllhhhhaaaa$$$$||||....zzzzoooommmm$$$$||||....ggggiiiiffff$$$$||||....jjjjppppeeeegggg$$$$||||....jjjjppppgggg$$$$||||....mmmmppppeeeegggg$$$$||||....aaaauuuu$$$$||||rrrreeeeaaaadddd....****mmmmeeee||||iiiinnnnddddeeeexxxx||||....mmmmeeeessssssssaaaaggggeeee||||iiiinnnnffffoooo||||ffffaaaaqqqq
||||ggggzzzziiiipppp||||ccccoooommmmpppprrrreeeessssssss
	       #### DDDDoooonnnn''''tttt ddddeeeelllleeeetttteeee oooowwwwnnnn mmmmiiiirrrrrrrroooorrrr lllloooogggg oooorrrr	aaaannnnyyyy ....nnnnoooottttaaaarrrr ffffiiiilllleeeessss ((((iiiinnnnccccllll iiiinnnn ssssuuuubbbbddddiiiirrrrssss))))
	       ddddeeeelllleeeetttteeee____eeeexxxxccccllll====((((^^^^||||////))))....((((mmmmiiiirrrrrrrroooorrrr||||nnnnoooottttaaaarrrr))))$$$$
	       #### IIIIggggnnnnoooorrrreeee	aaaannnnyyyy llllooooccccaaaallll rrrreeeeaaaaddddmmmmeeee ffffiiiilllleeeessss
	       llllooooccccaaaallll____iiiiggggnnnnoooorrrreeee====RRRREEEEAAAADDDDMMMMEEEE....ddddoooocccc....iiiicccc
	       #### AAAAuuuuttttoooommmmaaaattttiiiiccccaaaallllllllyyyy ddddeeeelllleeeetttteeee llllooooccccaaaallll ccccooooppppiiiieeeessss ooooffff ffffiiiilllleeeessss tttthhhhaaaatttt tttthhhheeee



Sun Release 4.1	     Last change: Mirror 2.6		       13






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



	       #### rrrreeeemmmmooootttteeee	ssssiiiitttteeee hhhhaaaassss zzzzaaaappppppppeeeedddd
	       ddddoooo____ddddeeeelllleeeetttteeeessss====ttttrrrruuuueeee

     Here are some sample package descriptions:

	  ppppaaaacccckkkkaaaaggggeeee====ggggnnnnuuuu
	       ccccoooommmmmmmmeeeennnntttt====PPPPoooowwwweeeerrrrffffuuuullll	aaaannnndddd ffffrrrreeeeeeee UUUUnnnn****xxxx uuuuttttiiiilllliiiittttiiiieeeessss
	       ssssiiiitttteeee====pppprrrreeeepppp....aaaaiiii....mmmmiiiitttt....eeeedddduuuu
	       rrrreeeemmmmooootttteeee____ddddiiiirrrr====////ppppuuuubbbb////ggggnnnnuuuu
	       #### LLLLooooccccaaaallll____ddddiiiirrrr++++ ccccaaaauuuusssseeeessss ggggnnnnuuuu ttttoooo bbbbeeee aaaappppppppeeeennnnddddeeeedddd ttttoooo tttthhhheeee ddddeeeeffffaaaauuuulllltttt llllooooccccaaaallll____ddddiiiirrrr
	       #### ssssoooo mmmmaaaakkkkiiiinnnngggg ////ppppuuuubbbblllliiiicccc////ggggnnnnuuuu
	       llllooooccccaaaallll____ddddiiiirrrr++++ggggnnnnuuuu
	       eeeexxxxcccclllluuuuddddeeee____ppppaaaatttttttt++++||||^^^^LLLLiiiissssttttAAAArrrrcccchhhhiiiivvvveeeessss////||||^^^^lllloooosssstttt++++ffffoooouuuunnnndddd////||||^^^^sssscccchhhheeeemmmmeeee----7777....0000////||||^^^^....hhhhiiiissssttttoooorrrryyyy
	       #### IIII tttteeeennnndddd	ttttoooo oooonnnnllllyyyy	kkkkeeeeeeeepppp tttthhhheeee llllaaaatttteeeesssstttt	ccccoooouuuupppplllleeee ooooffff vvvveeeerrrrssssiiiioooonnnnssss ooooffff tttthhhhiiiinnnnggggssss
	       #### tttthhhhiiiissss ssssttttooooppppssss mmmmiiiirrrrrrrroooorrrr ffffrrrroooommmm	rrrreeeettttrrrriiiieeeevvvviiiinnnngggg tttthhhheeee oooollllddddeeeerrrr vvvveeeerrrrssssiiiioooonnnnssss IIII''''vvvveeee rrrreeeemmmmoooovvvveeeedddd
	       mmmmaaaaxxxx____ddddaaaayyyyssss====33330000
	       ddddoooo____ddddeeeelllleeeetttteeeessss====ffffaaaallllsssseeee

	  ppppaaaacccckkkkaaaaggggeeee====XXXX11111111RRRR5555
	       ccccoooommmmmmmmeeeennnntttt====XXXX WWWWiiiinnnnddddoooowwwwssss ((((wwwwiiiinnnnddddoooowwwwiiiinnnngggg ggggrrrraaaapppphhhhiiiiccccssss ssssyyyysssstttteeeemmmm ffffoooorrrr	UUUUnnnn****xxxx))))
	       ssssiiiitttteeee====eeeexxxxppppoooorrrrtttt....llllccccssss....mmmmiiiitttt....eeeedddduuuu
	       rrrreeeemmmmooootttteeee____ddddiiiirrrr====////ppppuuuubbbb////RRRR5555
	       llllooooccccaaaallll____ddddiiiirrrr++++ccccoooommmmppppuuuuttttiiiinnnngggg////ggggrrrraaaapppphhhhiiiiccccssss////ssssyyyysssstttteeeemmmmssss////XXXX11111111////ppppuuuubbbb////RRRR5555
	       #### TTTThhhhiiiissss iiiissss aaaa llllooooccccaaaallll ssssyyyymmmmlllliiiinnnnkkkk ttttoooo tttthhhheeee	ffffrrrreeeeeeee----ffffoooorrrr----aaaallllllll ccccoooonnnnttttrrrriiiibbbb aaaarrrreeeeaaaa
	       #### aaaannnndddd iiiissss	mmmmiiiirrrrrrrroooorrrreeeedddd eeeellllsssseeeewwwwhhhheeeerrrreeee
	       llllooooccccaaaallll____iiiiggggnnnnoooorrrreeee====^^^^ccccoooonnnnttttrrrriiiibbbb$$$$
	       #### DDDDoooonnnn''''tttt ccccoooommmmpppprrrreeeessssssss	aaaa tttthhhhiiiinnnngggg....  IIIItttt iiiissss	aaaallllrrrreeeeaaaaddddyyyy	ccccoooommmmpppprrrreeeesssssssseeeedddd
	       #### bbbbuuuutttt ddddooooeeeessssnnnn''''tttt llllooooooookkkk iiiitttt....
	       ccccoooommmmpppprrrreeeessssssss____ppppaaaatttttttt====

	  ppppaaaacccckkkkaaaaggggeeee====ccccnnnneeeewwwwssss
	       ccccoooommmmmmmmeeeennnntttt====TTTThhhheeee CCCC NNNNeeeewwwwssss ssssyyyysssstttteeeemmmm
	       ssssiiiitttteeee====ffffttttpppp....ccccssss....ttttoooorrrroooonnnnttttoooo....eeeedddduuuu
	       rrrreeeemmmmooootttteeee____ddddiiiirrrr====////ppppuuuubbbb////cccc----nnnneeeewwwwssss
	       llllooooccccaaaallll____ddddiiiirrrr++++ccccoooommmmppppuuuuttttiiiinnnngggg////uuuusssseeeennnneeeetttt////ssssooooffffttttwwwwaaaarrrreeee////ttttrrrraaaannnnssssppppoooorrrrtttt////cccc
	       ccccoooommmmpppprrrreeeessssssss____eeeexxxxccccllll++++||||ppppaaaattttcccchhhheeeessss////PPPPAAAATTTTCCCCHHHHDDDDAAAATTTTEEEESSSS||||WWWWhhhheeeerrrreeeeFFFFrrrroooommmm

	  #### TTTTHHHHIIIISSSS IIIISSSS JJJJUUUUSSSSTTTT AAAA TTTTEEEESSSSTTTT
	  ppppaaaacccckkkkaaaaggggeeee====tttteeeesssstttt vvvvmmmmssss ssssiiiitttteeee
	       ssssiiiitttteeee====vvvvmmmmssssbbbbooooxxxx....ssssoooommmmeeeewwwwhhhheeeerrrreeee....aaaacccc....uuuukkkk
	       llllooooccccaaaallll____ddddiiiirrrr====////ttttmmmmpppp////ccccooooppppyyyy4444
	       rrrreeeemmmmooootttteeee____ddddiiiirrrr====vvvvmmmmsssssssseeeerrrrvvvv////ffffiiiilllleeeessss
	       rrrreeeemmmmooootttteeee____ffffssss====vvvvmmmmssss
	       #### MMMMuuuusssstttt ddddoooo tttthhhheeeesssseeee sssseeeettttttttiiiinnnnggggssss	ffffoooorrrr VVVVMMMMSSSS
	       ffffllllaaaaggggssss____rrrreeeeccccuuuurrrrssssiiiivvvveeee====[[[[............]]]]
	       ggggeeeetttt____ssssiiiizzzzeeee____cccchhhhaaaannnnggggeeee====ffffaaaallllsssseeee

	  #### aaaannnndddd	oooonnnn,,,, aaaannnndddd	oooonnnn ............

HHHHIIIINNNNTTTTSSSS
     On	adding a new package, first check it out  by  turning  on
     the ----nnnn option.



Sun Release 4.1	     Last change: Mirror 2.6		       14






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     If	you are	adding to an existing archive, then it is usually
     best to force the time-stamps of the existing local files so
     time comparisons with the remote files will work.

     Try and keep all packages that are	being retrieved	from  the
     same site together.  That way mmmmiiiirrrrrrrroooorrrr will only have to login
     once.

     Remember that all regexp's	are Perl regular expressions.

     If	the remote site	contains symlinks that you want	to "flat-
     ten  out"	into  the  corresponding  files,  then do this by
     changing the flags	passed to the remote ls:
	  _f_l_a_g_s__r_e_c_u_r_s_i_v_e++++L or
	  _f_l_a_g_s__n_o_n_r_e_c_u_r_s_i_v_e++++L

     First test	this by	trying a llllssss ----llllRRRRaaaattttLLLL  on	the  remote  site
     under the ftp command to check whether the	remote file-store
     has any symlink loops.

     If	you are	mirroring a very large site that  changes  infre-
     quently,  add  _m_a_x__d_a_y_s=7	to  the	settings after it is ini-
     tially mirrored.  That way	mirror will only have to consider
     recent  files  when updating.  Then once a	week, or whenever
     necessary,	call mirror with ----kkkk_m_a_x__d_a_y_s=0  to  force  a  full
     update.

     If	you don't want to compress anything from the remote  site
     the  easiest  way	to do this is to set the _c_o_m_p_r_e_s_s__p_a_t_t to
     nothing.

     If	you want to run	a command at the end of	mirroring a pack-
     age  a useful trick is to reset the _m_a_i_l__p_r_o_g variable to be
     the program name and _m_a_i_l__t_o to be	the arguments.

     For netware, dosftp, macos	and VMS	you should  normally  set
     remote_dir	 to  be	the home directory of the remote ftp dae-
     mon.  Connect in manually and before changing directory  use
     the pwd command to	find where home	is.  If	you are	only mir-
     roring part of the	tree then give the full	path name includ-
     ing this home directory at	the start.

     macos names can sometimes contain characters  that	 make  it
     hard  to  pass  them through un*x shells.	Since compressing
     files is done via a shell it  would  be  best  to	turn  off
     compression with compress_patt=

     macos files seem to always	change size when  transfered,  in
     either  binary  or	 text  mode.   So it would be best to set
     get_size_change=false





Sun Release 4.1	     Last change: Mirror 2.6		       15






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



NNNNEEEETTTTIIIIQQQQUUUUEEEETTTTTTTTEEEE
     If	you are	going to mirror	a remote site,	please	obey  any
     restrictions  that	 the site administrators place on access.
     You can generally find the	restrictions on	connecting to the
     archive  using  the  standard ffffttttpppp command.	 Any restrictions
     are normally given	as a login banner  or  in  a  (hopefully)
     obvious file.

     Here are, what I hope are,	some good general rules:

     Only mirror a site	well outside the working  hours	 of  both
     the local and remote sites.

     It	is probably unfriendly to try to  mirror  a  remote  site
     more than once a day.

     Before trying to mirror a remote  site,  try  and	find  the
     packages  you  want  from	local archives,	as no one will be
     pleased if	you soak up a  lot  of	network	 bandwidth  need-
     lessly.

     If	you have a local archive, then tell people  about  it  so
     they  don't  have	to  waste bandwidth and	CPU at the remote
     site.

     Do	remember to check your config-files from time to time  in
     case  the	remote	archive	has changed their access restric-
     tions.

     Check the remote site regularly for any new restrictions.

SSSSEEEEEEEE AAAALLLLSSSSOOOO
     perl(l), ftp(1), mm(1)

BBBBUUUUGGGGSSSS
     Some of the netiquette guidelines should be enforced.

     Should be able to cope with links as well as symlinks.

     Suffers from _c_r_e_e_p_i_n_g _f_e_a_t_u_r_i_s_m.

RRRREEEEMMMMEEEEMMMMBBBBEEEERRRR
     Objects in	a mirror are closer than you think!

AAAAUUUUTTTTHHHHOOOORRRR
     Written by	Lee McLoughlin <lmjm@doc.ic.ac.uk>.   It  uses	a
     heavily rewritten and extended version of the ftp.pl package
     originally	by: Alan R. Martello <al@ee.pitt.edu> which  uses
     lchat.pl  which  is based on the chat2.pl package by: Randal
     L.	Schwartz <merlyn@ora.com>





Sun Release 4.1	     Last change: Mirror 2.6		       16






MIRROR(1L)	  MISC.	REFERENCE MANUAL PAGES	       MIRROR(1L)



     Special thanks to the following people for	patches, comments
     and  other	 suggestions  that have	helped to improve mirror.
     If	I have omitted anyone, please contact me.

     James Revell <revell@uunet.uu.net>
     Chris Myers <chris@wugate.wustl.edu>
     Amos Shapira <amoss@cs.huji.ac.il>
     Paul A Vixie <vixie@pa.dec.com>
     Jonathan Kamens <jik@pit-manager.mit.edu>
     Christian Andretzky <casys@otto.mb3.tu-chemnitz.de>
     Kean Stump	<kean@ucs.orst.edu>
     Anita Eijs	<anita@hermes.bouw.tno.nl>
     Simon E Sperro <S.E.Sperro@gdr.bath.ac.uk>
     Aaron Wohl	<aw0g+@andrew.cmu.edu>
     Michael Meissner <meissner@osf.org>
     Michael Graff <explorer@iastate.edu>
     Bradley Rhoades <us267388@mail.mmmg.com>
     Edwards Reed <eer@cinops.xerox.com>
     Joachim Schrod <schrod@iti.informatik.th-darmstadt.de>
     David Woodgate <David.Woodgate@mel.dit.csiro.au>
     Pieter Immelman <pi@itu1.sun.ac.za>
     Jost Krieger <x920031@bus072.rz.ruhr-uni-bochum.de>
     Erez HWank1 Zadok <ezk@cs.columbia.edu>
































Sun Release 4.1	     Last change: Mirror 2.6		       17




