Difference between revisions of "SQWareProduction:postgres:etc:sqwpg CreInst CrontabRef.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
Line 6: Line 6:
 
<pre>
 
<pre>
 
## 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
 +
# PITR
 +
00 21 * * * ksh -c '. $HOME/.profile <PG_SID>;$gvsqw_PgBin/sqwpg_RunJob.ksh -I <PG_SID> -A PITR > $HOME/tmp/PITR_<PG_SID>.log 2>&1'
 
# Dump
 
# Dump
 
00 20 * * * ksh -c '. $HOME/.profile <PG_SID>;$gvsqw_PgBin/sqwpg_RunJob.ksh -I <PG_SID> -A Dump > $HOME/tmp/Dump_<PG_SID>.log 2>&1'
 
00 20 * * * ksh -c '. $HOME/.profile <PG_SID>;$gvsqw_PgBin/sqwpg_RunJob.ksh -I <PG_SID> -A Dump > $HOME/tmp/Dump_<PG_SID>.log 2>&1'

Revision as of 09:52, 20 July 2014

Configuration file $gvsqw_PgBin/../etc/sqwpg_CreInst_CrontabRef.cfg:



File content:

## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command
# PITR
00 21 * * * ksh -c '. $HOME/.profile <PG_SID>;$gvsqw_PgBin/sqwpg_RunJob.ksh -I <PG_SID> -A PITR > $HOME/tmp/PITR_<PG_SID>.log 2>&1'
# Dump
00 20 * * * ksh -c '. $HOME/.profile <PG_SID>;$gvsqw_PgBin/sqwpg_RunJob.ksh -I <PG_SID> -A Dump > $HOME/tmp/Dump_<PG_SID>.log 2>&1'
# Reindex
00 04 * * 6 ksh -c '. $HOME/.profile <PG_SID>;$gvsqw_PgBin/sqwpg_RunJob.ksh -I <PG_SID> -A Reindex > $HOME/tmp/Reindex_<PG_SID>.log 2>&1'
# Analyze
00 05 * * 6 ksh -c '. $HOME/.profile <PG_SID>;$gvsqw_PgBin/sqwpg_RunJob.ksh -I <PG_SID> -A Analyze > $HOME/tmp/Analyze_<PG_SID>.log 2>&1'
# Vacuum
00 06 * * 6 ksh -c '. $HOME/.profile <PG_SID>;$gvsqw_PgBin/sqwpg_RunJob.ksh -I <PG_SID> -A Vacuum > $HOME/tmp/Vacuum_<PG_SID>.log 2>&1'