Difference between revisions of "SQWareProduction:cassandra:etc:sqwcas CreInst CrontabRef.cfg"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 7: | Line 7: | ||
## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command | ## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command | ||
# 'nodetool repair -pr' on all nodes | # 'nodetool repair -pr' on all nodes | ||
− | #00 21 6 * * | + | #00 21 6 * * bash -c '. $HOME/.profile <CAS_SID>;$gvsqw_CasBin/sqwcas_RunJob.ksh -I <CAS_SID> -A NodetoolRepairPr > $HOME/tmp/NodetoolRepairPr_<CAS_SID>.log 2>&1' |
# 'nodetool compact' on all nodes | # 'nodetool compact' on all nodes | ||
− | #00 21 3 * * | + | #00 21 3 * * bash -c '. $HOME/.profile <CAS_SID>;$gvsqw_CasBin/sqwcas_RunJob.ksh -I <CAS_SID> -A NodetoolCompact > $HOME/tmp/NodetoolCompact_<CAS_SID>.log 2>&1' |
# BackupInc on all nodes | # BackupInc on all nodes | ||
− | #00 19 * * 1-5 | + | #00 19 * * 1-5 bash -c '. $HOME/.profile <CAS_SID>;$gvsqw_CasBin/sqwcas_RunJob.ksh -I <CAS_SID> -A BackupInc > $HOME/tmp/BackupInc_<CAS_SID>.log 2>&1;' |
# BackupFull on all nodes | # BackupFull on all nodes | ||
− | #00 19 * * 0 | + | #00 19 * * 0 bash -c '. $HOME/.profile <CAS_SID>;$gvsqw_CasBin/sqwcas_RunJob.ksh -I <CAS_SID> -A BackupFull > $HOME/tmp/BackupFull_<CAS_SID>.log 2>&1;' |
</pre> | </pre> | ||
<br> | <br> |
Latest revision as of 16:01, 23 February 2025
Configuration file $gvsqw_CasBin/../etc/sqwcas_CreInst_CrontabRef.cfg:
File content:
## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command # 'nodetool repair -pr' on all nodes #00 21 6 * * bash -c '. $HOME/.profile <CAS_SID>;$gvsqw_CasBin/sqwcas_RunJob.ksh -I <CAS_SID> -A NodetoolRepairPr > $HOME/tmp/NodetoolRepairPr_<CAS_SID>.log 2>&1' # 'nodetool compact' on all nodes #00 21 3 * * bash -c '. $HOME/.profile <CAS_SID>;$gvsqw_CasBin/sqwcas_RunJob.ksh -I <CAS_SID> -A NodetoolCompact > $HOME/tmp/NodetoolCompact_<CAS_SID>.log 2>&1' # BackupInc on all nodes #00 19 * * 1-5 bash -c '. $HOME/.profile <CAS_SID>;$gvsqw_CasBin/sqwcas_RunJob.ksh -I <CAS_SID> -A BackupInc > $HOME/tmp/BackupInc_<CAS_SID>.log 2>&1;' # BackupFull on all nodes #00 19 * * 0 bash -c '. $HOME/.profile <CAS_SID>;$gvsqw_CasBin/sqwcas_RunJob.ksh -I <CAS_SID> -A BackupFull > $HOME/tmp/BackupFull_<CAS_SID>.log 2>&1;'