++ Using CASTOR
See the main ATLAS TWiki page on using CASTOR tape storage here:
https://twiki.cern.ch/twiki/bin/view/Atlas/WorkBookCastor
Note: You can only use CASTOR at CERN, and wildcards don't work.
If you want to copy lots of files in a dataset across use the following script (thanks to Mike!):
# List all the files in a specified directory here (you could add a grep statement if you don't want every file).
filelist=`nsls /castor/cern.ch</path/to/directory>
# e.g. /castor/cern.ch/grid/atlas/datafiles/higgs/local/atlfast/mc12/mc12.006900.McAtNloJimmyTTbar.atlfast.AOD.v12000701/`
for file in $filelist
do
# Then give it the normal rfcp command with the full address of the files you want to copy, the path to the output directory and the file name you want to give it.
rfcp /castor/cern.ch/<path/to/directory/>$file <~/path/to/output/directory/>$file
# e.g. /castor/cern.ch/grid/atlas/datafiles/higgs/local/atlfast/mc12/mc12.006900.McAtNloJimmyTTbar.atlfast.AOD.v12000701/$file /data/Files/$file
done
--
KatharineLeney - 15 Aug 2007