Search/Navigation:
Related:
SLAC/EPP
/HPS Public
Jefferson Lab/Hall B
/HPS Run Wiki
S30XL-LESA/LDMX
...
The above command is for informational purposes only. Fully restoring the database from a backup would need to go through a JLAB CCPR, as the accounts we have access to do not have all the proper permissions for doing this.
This is a general outline of dumping the database and replicating it to the SLAC MySQL database, which is used for releases, as connecting from SLAC to the JLab database is not reliable enough.
First, from a JLab machine such as ifarm
, a SQL dump should be created that includes all required statements for dropping tables (the default configuration of mysqldump
should be fine).
Code Block |
---|
mysqldump -h hpsdb.jlab.org -uUSER -pPASSWORD --disable-lock-tables hps_conditions &> hps_conditions_for_slac.sql |
This file should then be copied over to SLAC.
Code Block |
---|
scp hps_conditions_for_slac.sql USER@rhel6-64.slac.stanford.edu:/nfs/slac/g/hps/someDir |
Configuring Detector Conditions for a Job
The conditions configuration is typically performed using arguments to command line programs, or the system is setup automatically from information in the LCIO or EVIO events.
...