Template:SQWareProduction sqwmsq BackupDatabase.ksh help: Difference between revisions

From Wiki_dbSQWare
Jump to navigation Jump to search
m Updated by BatchUser
No edit summary
 
(59 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>
<pre>
Sourcing sqwmsq_Global.lib v3.1.03 SQWareProduction for MsSql (dbSQWare GPL v3) ...  
Can't find if env is 'SqlCmd' or 'FreeTds' !
Sourcing sqwmsq_Global.lib v2025.06 SQWareProduction for MsSql (dbSQWare) ...  


Usage: sqwmsq_BackupDatabase.ksh [-h] -S|-I <FreeTdsAlias> -D <DatabaseName> [+ options]
Usage: sqwmsq_BackupDatabase.ksh [-h] -I <FreeTdsAlias> -D <DatabaseName> [+ options]


DESCRIPTION
DESCRIPTION
   sqwmsq_BackupDatabase.ksh backup the database
   sqwmsq_BackupDatabase.ksh backup the database
SUPPORT
SUPPORT
   MsSql supported versions: 2000 <= v <= 2012
   MsSql supported versions: 2000 <= v <= 2022


PARAMETERS
PARAMETERS
     -S|-I Instance   : Target instance (freeTds alias) for backup.
     -I   Instance     : Target instance (freeTds alias) for backup.
     -D  databasename  : Target database.
     -D   databasename : Target database.
OPTIONS
OPTIONS
     -h   help          : Display the full usage.
     -h                 : Display the full usage.
     -s                : Display samples of usage.
     -s                : Display samples of usage.
     -BP  path          : Path to put backup (default: 'HKEY_LOCAL_MACHINE', 'BackupDirectory').
     -BP  path          : Path to put backup (by default : 'HKEY_LOCAL_MACHINE', 'BackupDirectory').
     -NS  Nb_stripe    : Force number of stripe.
     -NS  Nb_stripe    : Force number of stripes.
     -HI  Nb_Generations: Number of generations to keep (by default 2).
     -HI  Nb_Generations: Number of generations to keep (by default 2).
     -FRT return_code  : Force return code value on error.
     -FRT return_code  : Force return code value on error.
     -SMS SizeMax      : Size Max Stripe (default 40000 Mo).
     -SMS SizeMax      : Size Max Stripe (by default 40000 Mo).
     -SBS SizeStat      : Size of backup stats (default: Statisticss=10).
     -SBS SizeStat      : Size of backup stats (by default : Statisticss=10).
     -REP              : Insert into repeat file on error.
     -REP              : Insert into repeat file on error.
     -AddMail email     : Email Address to add at 'pmexpdba@gmail.com'.
     -AddMail   email   : Email address to add at 'demo-sqwarebox@dbsqware.com'.
    -PurgeDiff        : Delete all diff and log backups.
    -NoComp            : Disable the compression if enable by default.
    -ForceComp        : Force the compression of backup file (only for 2008 R2 standard edition).
     -SendReport        : Send execution log report.
     -SendReport        : Send execution log report.
     -Type type        : Type of backup full,diff,log,CopyOnly (defaut full).
     -Type type        : Type of backup full,diff,log,CopyOnly (by default full).
     -NoMail            : Desactivate sendmail on error pmexpdba@gmail.com (by default, send on error).
     -NoMail            : Deactivate sendmail on error demo-sqwarebox@dbsqware.com (by default, send on error).
     -Exec              : Execute commands (default, display generated commands)
    -Locale    locale  : Force Locale for help display (fr,en).
     -Exec              : Execute commands (by default, display generated commands).


</pre>
</pre>

Latest revision as of 18:53, 1 July 2025

Can't find if env is 'SqlCmd' or 'FreeTds' !
Sourcing sqwmsq_Global.lib v2025.06 SQWareProduction for MsSql (dbSQWare) ... 

Usage: sqwmsq_BackupDatabase.ksh [-h] -I <FreeTdsAlias> -D <DatabaseName> [+ options]

DESCRIPTION
   sqwmsq_BackupDatabase.ksh backup the database
SUPPORT
   MsSql supported versions: 2000 <= v <= 2022

PARAMETERS
     -I   Instance      : Target instance (freeTds alias) for backup.
     -D   databasename  : Target database.
OPTIONS
     -h                 : Display the full usage.
     -s                 : Display samples of usage.
     -BP  path          : Path to put backup (by default : 'HKEY_LOCAL_MACHINE', 'BackupDirectory').
     -NS  Nb_stripe     : Force number of stripes.
     -HI  Nb_Generations: Number of generations to keep (by default 2).
     -FRT return_code   : Force return code value on error.
     -SMS SizeMax       : Size Max Stripe (by default 40000 Mo).
     -SBS SizeStat      : Size of backup stats (by default : Statisticss=10).
     -REP               : Insert into repeat file on error.
     -AddMail   email   : Email address to add at 'demo-sqwarebox@dbsqware.com'.
     -PurgeDiff         : Delete all diff and log backups.
     -NoComp            : Disable the compression if enable by default.
     -ForceComp         : Force the compression of backup file (only for 2008 R2 standard edition).
     -SendReport        : Send execution log report.
     -Type type         : Type of backup full,diff,log,CopyOnly (by default full).
     -NoMail            : Deactivate sendmail on error demo-sqwarebox@dbsqware.com (by default, send on error).
     -Locale    locale  : Force Locale for help display (fr,en).
     -Exec              : Execute commands (by default, display generated commands).