- Set up GridTools and Kerberised SSH
source /stage/minos-data1/software/grid/setup_minos_local-SL4.sh
source /stage/minos-data1/vo/grid/sshkrb5/setupkssh.sh
/usr/kerberos/bin/kinit -l 6d -r 6d -A -k -t /stage/minos-data1/vo/grid/mcarchiver.keytab \
mcarchiver/minos/csfa.rl.ac.uk@FNAL.GOV
- Set up CASTOR environment
export STAGE_SVCCLASS=minosTape
export STAGE_HOST=genstager.ads.rl.ac.uk
export RFIO_USE_CASTOR_V2=YES
- Define the flux set to copy and create the CASTOR directory
flux_dir= required flux set e.g. fluka05_le010z-185i
castor_top=/castor/ads.rl.ac.uk/prod/minos/tape/flux/gnumi/v19
dir=$castor_top/$flux_dir
rfmkdir $dir
rfchmod 0770 $dir
- Run DCM to copy the flux set
dcm disk_to_castor --exclude ".*\\.root,.*\\.log,.*\\.dat,.*\\.err,.*\\.input" \
nwest@minos21.fnal.gov:/minos/data/flux/gnumi/v19/$flux_dir \
$castor_top/$flux_dir
Note that the command can safely be run multiple times; it skips any
data already copied.