Mirror Package
This page describes the BABAR template of the Mirror package. This template of mirror can be easily modified to copy files by means of ftp protocol.
Related pages: [BaBar Home Page] [Computing]
28 Mar 1996
Table of Contents:
The BABAR mirror template is built around original mirror package, it is fully compatible with original mirror package. The only thing added to the original mirror package are:
- a "README-BABAR" file.
- a "run" directory that contains templates that user can modify and run.
- /usr/bin/perl has been replaced by /usr/local/bin/perl in the following scripts:
mirror mm pkgs_to_mmin
make sure your perl is installed in /usr/local/bin.
The mirror template is available on anonymous FTP site ftp.slac.stanford.edu, directory software/rdist, file mirror.tar.Z.
To run mirror manually, set auto=0 and set user to the account to be
run on server.
To run mirror automatically, set auto=1 and set up the password
To run mirror automatically from anonymous ftp site, set auto=2.
- Change 'home' and 'greenjay.slac.stanford.edu:mod1 0 0' to whatever appropriate in file 'conf'.
- In directory 'packages', rename 'greenjay.slac.stanford.edu' to the IP-address of remote host.
- Edit the file named after IP-address, change the following variables:
remote_dir |* directory on remote host
local_dir |* local directory
mail_to |* mail to whom. Comment it out if none
get_file |* 'true' means get 'false' means 'put'.
site |* host e-addr, e.g. greenjay.slac.stanford.edu
If you mirror files to AFS file in remote site, make sure your AFS password is the same as UNIX password so that ftp logon will get a AFS token for you automatically.
The directory 'passdir' in the template directory will be used if one set auto=1 in runmirror to run mirror automatically. Put your password into file 'pass' and make sure it is not readable by others.
- If it is in AFS: turn off 'r' in ACL of 'passdir' from all but yourself. e.g.
cd passdir
fs sa -clear . myname all
- If it is in NFS: use chmod to turn off the read bit from group and
world users, e.g.
cd passdir
chmod og-r pass
Maintained by Terry Hung. Send suggestions and additions to
terryh@slac.stanford.edu415-926-3618
|