recall |
recall is a command line tool used to copy files on recall disk areas. The selection of files is based on a SQL query.
recall type [options] recall_area query
where:
type - one of:
raw
datarec
mc
recall_area - location to put the files (groups defined in descript.dsrvdir_groups table)
all - user recall area (USER group)
dst - DST recall area (DST group)
production - reconstruction production recall area (PROD group)
dstprod - DST production recall area (DSTPROD group)
a coma separated list of recall areas
query - where part of an SQL query based on logger.type_data (raw_data, datarec_data or mc_data)
options:
-b - batch mode, print out only the filenames
-d - disk only, show only files that are on disk
recall can be used to manually copy files on recall disk areas. A normal user is never required to do so since KID automatically does the trick. It is however an invaluable tool for system administrators.
Using the -d flag, only files that are already on a disk can be copied.
recall normally uses a human friendly output. Using the -b flag, only names of the copied files will be printed.
Recall a list of datarec files to a user recall area.
recall datarec all "stream_code='bgg' and version=16 and run_nr=22653"
Copy a set of datarec files to a specific recall area and limit the action only to files that are already on a disk.
recall datarec -d f0a 15 "stream_code='bgg' and version=16 and run_nr between 22000 and 23000"
A more elaborate request to copy raw files to the production area.
recall raw production "stream_code='ALL' and torta_name='2sect_DC2_c5' and Zero_Sup=1 and run_nr between 26000 and 26335"
A simple Monte Carlo request, with several recall areas listed. The least used area will be used.
recall mc f0a 15 f0b 13 f0b 15 "mccard_code='kskl_2pi'"
None yet.
Please send questions to Igor Sfiligoi
Send comment to Igor Sfiligoi.