Difference between revisions of "SQWareProduction:mssql:lib:sqwmsq BackupDatabase.lib"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 5: | Line 5: | ||
<pre> | <pre> | ||
gfsqw_ConvertBackslashToSlash $lvsqw_BackupPath|read lvsqw_BackupPath | gfsqw_ConvertBackslashToSlash $lvsqw_BackupPath|read lvsqw_BackupPath | ||
− | |||
gfsqw_ConvertSlashToBackslash $gvsqw_TmpFile.sql | gfsqw_ConvertSlashToBackslash $gvsqw_TmpFile.sql | ||
− | |||
− | |||
gfsqw_ExecXpCmdShell "dir /-C $lvsqw_BackupPathBackslash\\${lvsqw_DbName}_${lvsqw_BckDate}_?stripe*_c*.dump" > $gvsqw_TmpFile | gfsqw_ExecXpCmdShell "dir /-C $lvsqw_BackupPathBackslash\\${lvsqw_DbName}_${lvsqw_BckDate}_?stripe*_c*.dump" > $gvsqw_TmpFile | ||
gfsqw_ExecXpCmdShell "dir $lvsqw_BackupPathBackslash\\${lvsqw_DbName}*.dump" > $gvsqw_TmpFile.fic | gfsqw_ExecXpCmdShell "dir $lvsqw_BackupPathBackslash\\${lvsqw_DbName}*.dump" > $gvsqw_TmpFile.fic | ||
− | |||
− | |||
lfsqw_BackupPath => | lfsqw_BackupPath => | ||
lfsqw_CommandFormat => | lfsqw_CommandFormat => | ||
lfsqw_InsertMonitoringBackup => | lfsqw_InsertMonitoringBackup => | ||
lfsqw_PurgeHistory => | lfsqw_PurgeHistory => | ||
− | |||
</pre> | </pre> | ||
<br> | <br> | ||
{{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_BackupDatabase.lib}} | {{SQWareProductionSurchargeLib|mssql|Mss|sqwmsq_BackupDatabase.lib}} | ||
<br> | <br> |
Revision as of 21:42, 12 November 2011
shell functions library $gvsqw_MssBin/../lib/sqwmsq_BackupDatabase.lib:
lib for sqwmsq_BackupDatabase.ksh
Functions explanation:
gfsqw_ConvertBackslashToSlash $lvsqw_BackupPath|read lvsqw_BackupPath gfsqw_ConvertSlashToBackslash $gvsqw_TmpFile.sql gfsqw_ExecXpCmdShell "dir /-C $lvsqw_BackupPathBackslash\\${lvsqw_DbName}_${lvsqw_BckDate}_?stripe*_c*.dump" > $gvsqw_TmpFile gfsqw_ExecXpCmdShell "dir $lvsqw_BackupPathBackslash\\${lvsqw_DbName}*.dump" > $gvsqw_TmpFile.fic lfsqw_BackupPath => lfsqw_CommandFormat => lfsqw_InsertMonitoringBackup => lfsqw_PurgeHistory =>