SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Comp. Search
Who's who?
Meetings
FAQ Homepage
Archive
Environment
Administration
New User Info.
Web Info/Tools
Monitoring
Training
Tools & Utils
Programming
C++ Standard
SRT, AFS, CVS
QA and QC
Remedy
Histogramming
Operations
PromptReco
Simulation Production
Online SW
Dataflow
Detector Control
Evt Processing
Run Control
Calibration
Databases
Offline
Workbook
Coding Standards
Simulation
Reconstruction
Prompt Reco.
BaBar Grid
Data Distribution
Beta & BetaTools
Kanga & Root
Analysis Tools
RooFit Toolkit
Data Management
Data Quality
Event display
Event Browser
Code releases
Databases
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)

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:


Overview of mirror template

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 FTP source of Mirror Template

The mirror template is available on anonymous FTP site ftp.slac.stanford.edu, directory software/rdist, file mirror.tar.Z.

The Procedure to Customize the Template

  • Edit file 'runmirror':
     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 
  • type 'runmirror'

AFS password


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.

Setting up password for automatic mirroring

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