Difference between revisions of "SQWareProduction:mssql:lib:sqwmsq RestoreDatabase.lib"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
Line 7: Line 7:
 
gfsqw_ConvertSlashToBackslash $gvsqw_TmpFile
 
gfsqw_ConvertSlashToBackslash $gvsqw_TmpFile
 
gfsqw_ExecSql $gvsqw_TmpFile.sql
 
gfsqw_ExecSql $gvsqw_TmpFile.sql
gfsqw_ExecXpCmdShell $gvsqw_TmpFile > $gvsqw_TmpFile.fic
+
gfsqw_ExecXpCmdShell $gvsqw_TmpFile| sed 's,  *$,,' | tee $gvsqw_TmpFile.fic
 
lfsqw_BackupPath =>  
 
lfsqw_BackupPath =>  
 
lfsqw_GenerateSql =>  
 
lfsqw_GenerateSql =>  
 +
lfsqw_ListBck
 
lfsqw_ListBck =>  
 
lfsqw_ListBck =>  
 +
lfsqw_RestoreDatabase =>
 
lfsqw_RsyncOrphans =>  
 
lfsqw_RsyncOrphans =>  
 
</pre>
 
</pre>

Revision as of 17:33, 5 April 2014

shell functions library $gvsqw_MssBin/../lib/sqwmsq_RestoreDatabase.lib:
lib for sqwmsq_RestoreDatabase.ksh
Functions explanation:

gfsqw_ConvertBackslashToSlash $lvsqw_BackupPath|read lvsqw_BackupPath
gfsqw_ConvertSlashToBackslash $gvsqw_TmpFile
gfsqw_ExecSql $gvsqw_TmpFile.sql
gfsqw_ExecXpCmdShell $gvsqw_TmpFile| sed 's,  *$,,' | tee $gvsqw_TmpFile.fic
lfsqw_BackupPath => 
lfsqw_GenerateSql => 
lfsqw_ListBck
lfsqw_ListBck => 
lfsqw_RestoreDatabase => 
lfsqw_RsyncOrphans => 


Nuvola apps information.png
Note:
You can overload functions contained in $gvsqw_MssBin/../lib/sqwmsq_RestoreDatabase.lib

by function with same name in $gvsqw_MssBin/../lib_cust/sqwmsq_RestoreDatabase.lib for all your environnement
or by $HOME/sqwConfig/sqwmsq_RestoreDatabase.lib specifically for this user .