Difference between revisions of "Template:SQWareProduction sqwpg RestoreDatabase.ksh help"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
− | Sourcing sqwpg_Global.lib | + | Sourcing sqwpg_Global.lib v2023.02 SQWareProduction for PostgreSQL (dbSQWare) ... |
Usage: sqwpg_RestoreDatabase.ksh [[-h]] -I instance -DT <DatabaseTarget> [[+ options]] | Usage: sqwpg_RestoreDatabase.ksh [[-h]] -I instance -DT <DatabaseTarget> [[+ options]] | ||
Line 7: | Line 7: | ||
sqwpg_RestoreDatabase.ksh restore $lvsqw_CopyType | sqwpg_RestoreDatabase.ksh restore $lvsqw_CopyType | ||
SUPPORT | SUPPORT | ||
− | PostgreSQL supported versions: 9.0 <= v <= | + | PostgreSQL supported versions: 9.0 <= v <= 15 |
PARAMETERS | PARAMETERS | ||
Line 19: | Line 19: | ||
-DD date_dump : Dump date to restore (default take the latest). | -DD date_dump : Dump date to restore (default take the latest). | ||
-RD directory : Directory holding dump file (default /pgbackup/$PG_SID). | -RD directory : Directory holding dump file (default /pgbackup/$PG_SID). | ||
− | -Drop : Drop database before load (by default, ). | + | -Drop : Drop database before load (by default, Enable). |
-NoMail : Deactivate sendmail on error pmexpdba@gmail.com (by default, send on error). | -NoMail : Deactivate sendmail on error pmexpdba@gmail.com (by default, send on error). | ||
− | -NoDrop : Do not drop database before load (by default, ). | + | -NoDrop : Do not drop database before load, drop all objects instead (by default, Enable). |
− | -Create : Create database before load with instance default character set (by default, ). | + | -Create : Create database before load with instance default character set (by default, Enable). |
− | -Verbose : Add - | + | -Verbose : Add --echo-queries option to psql cmd when restore. |
− | -NoCreate : No create database before load (by default, ). | + | -NoCreate : No create database before load, must exists (by default, Enable). |
-AddMail email : Email address to add at 'pmexpdba@gmail.com'. | -AddMail email : Email address to add at 'pmexpdba@gmail.com'. | ||
-SendReport : Send execution log report. | -SendReport : Send execution log report. | ||
-Locale locale : Force Locale for help display (fr,en). | -Locale locale : Force Locale for help display (fr,en). | ||
− | + | -FRT return_code : Force return code value on error. | |
-Exec : Restore (default, display generated commands). | -Exec : Restore (default, display generated commands). | ||
</pre> | </pre> |
Revision as of 18:26, 24 January 2023
Sourcing sqwpg_Global.lib v2023.02 SQWareProduction for PostgreSQL (dbSQWare) ... Usage: sqwpg_RestoreDatabase.ksh [[-h]] -I instance -DT <DatabaseTarget> [[+ options]] DESCRIPTION sqwpg_RestoreDatabase.ksh restore $lvsqw_CopyType SUPPORT PostgreSQL supported versions: 9.0 <= v <= 15 PARAMETERS -I instance : Target instance to restore. -DT DatabaseTarget : Target database. OPTIONS -h help : Display the full usage. -s : Display samples of usage. -F file : Dump file to restore (default take the latest). -DS DatabaseSource : Source database (by default same than -DT). -DD date_dump : Dump date to restore (default take the latest). -RD directory : Directory holding dump file (default /pgbackup/$PG_SID). -Drop : Drop database before load (by default, Enable). -NoMail : Deactivate sendmail on error pmexpdba@gmail.com (by default, send on error). -NoDrop : Do not drop database before load, drop all objects instead (by default, Enable). -Create : Create database before load with instance default character set (by default, Enable). -Verbose : Add --echo-queries option to psql cmd when restore. -NoCreate : No create database before load, must exists (by default, Enable). -AddMail email : Email address to add at 'pmexpdba@gmail.com'. -SendReport : Send execution log report. -Locale locale : Force Locale for help display (fr,en). -FRT return_code : Force return code value on error. -Exec : Restore (default, display generated commands).