Difference between revisions of "SQWareProduction:mssql:etc:sqwmsq ConfInst CrontabRef.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Configuration file $gvsqw_MssBin/../etc/sqwmsq_ConfInst_CrontabRef.cfg:<br>
+
Configuration file $gvsqw_MsqBin/../etc/sqwmsq_ConfInst_CrontabRef.cfg:<br>
 
{{SQWareProduction_sqwmsq_ConfInst_CrontabRef.cfg_presentation}}
 
{{SQWareProduction_sqwmsq_ConfInst_CrontabRef.cfg_presentation}}
 
<br>
 
<br>
Line 5: Line 5:
 
File content:
 
File content:
 
<pre>
 
<pre>
 +
###########################
 +
## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command
 
## <lvsqw_InstanceParam>
 
## <lvsqw_InstanceParam>
 
# Backup all databases
 
# Backup all databases
00 22 * * 1-6  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -S <lvsqw_InstanceParam> -A BackupAll > $HOME/tmp/BackupAll_<lvsqw_InstanceParam>.log 2>&1'
+
00 22 * * 1-6  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -I <lvsqw_InstanceParam> -A BackupAll > $HOME/tmp/BackupAll_<lvsqw_InstanceParam>.log 2>&1'
 
# Rebuild all databases
 
# Rebuild all databases
30 07 * * 6  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -S <lvsqw_InstanceParam> -A RebuildAll > $HOME/tmp/RebuildAll_<lvsqw_InstanceParam>.log 2>&1'
+
30 07 * * 6  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -I <lvsqw_InstanceParam> -A RebuildAll > $HOME/tmp/RebuildAll_<lvsqw_InstanceParam>.log 2>&1'
 
# Stats all databases
 
# Stats all databases
00 07 * * 0  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -S <lvsqw_InstanceParam> -A StatisticsAll > $HOME/tmp/StatisticsAll_<lvsqw_InstanceParam>.log 2>&1'
+
00 07 * * 0  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -I <lvsqw_InstanceParam> -A StatisticsAll > $HOME/tmp/StatisticsAll_<lvsqw_InstanceParam>.log 2>&1'
 
</pre>
 
</pre>
 
<br>
 
<br>

Latest revision as of 20:31, 27 September 2021

Configuration file $gvsqw_MsqBin/../etc/sqwmsq_ConfInst_CrontabRef.cfg:



File content:

###########################
## mm(0-59) hh(0-23) dd(1-31) MM(0-12) DAY(0-sunday, 1-monday, ...) command
## <lvsqw_InstanceParam>
# Backup all databases
00 22 * * 1-6  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -I <lvsqw_InstanceParam> -A BackupAll > $HOME/tmp/BackupAll_<lvsqw_InstanceParam>.log 2>&1'
# Rebuild all databases
30 07 * * 6  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -I <lvsqw_InstanceParam> -A RebuildAll > $HOME/tmp/RebuildAll_<lvsqw_InstanceParam>.log 2>&1'
# Stats all databases
00 07 * * 0  ksh -c '. $HOME/.profile ;$gvsqw_MsqBin/sqwmsq_RunJob.ksh -I <lvsqw_InstanceParam> -A StatisticsAll > $HOME/tmp/StatisticsAll_<lvsqw_InstanceParam>.log 2>&1'