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

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
Line 1: Line 1:
 
<pre>
 
<pre>
 
Can't find if env is 'SqlCmd' or 'FreeTds' !
 
Can't find if env is 'SqlCmd' or 'FreeTds' !
Sourcing sqwmsq_Global.lib v2024.08 SQWareProduction for MsSql (dbSQWare) ...  
+
Sourcing sqwmsq_Global.lib v2025.01 SQWareProduction for MsSql (dbSQWare) ...  
  
Run sqwmsq_BackupDatabase.ksh -h : 2024-12-24 08:36:35
+
Usage: sqwmsq_BackupDatabase.ksh [-h] -I <FreeTdsAlias> -D <DatabaseName> [+ options]
  
__________________________________________________________________
+
DESCRIPTION
Program informations
+
  sqwmsq_BackupDatabase.ksh backup the database
SqwVersion=2024.08 / 2024.08
+
SUPPORT
2024-12-24 08:36:35
+
  MsSql supported versions: 2000 <= v <= 2022
Copyright 2010-2024, dbSQWare (www.dbsqware.com)
 
Linux dbsqware02 4.15.18-21-pve #1 SMP PVE 4.15.18-48 (Fri, 20 Sep 2019 11:28:30 +0200) x86_64 GNU/Linux
 
gvsqw_GenPath=/home/dbsqware/dbSQWare/SQWareProduction/mssql/bin
 
Path=/home/dbsqware/dbSQWare/SQWareProduction/mssql/bin
 
./sqwmsq_BackupDatabase.ksh -h
 
dbsqware@dbsqware02
 
  
sqwmsq_BackupDa,dbsqware ./sqwmsq_BackupDatabase.ksh -h
+
PARAMETERS
   `-pstree -aul 20889
+
    -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 'pmexpdba@gmail.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 pmexpdba@gmail.com (by default, send on error).
 +
    -Locale    locale  : Force Locale for help display (fr,en).
 +
    -Exec              : Execute commands (by default, display generated commands).
  
__________________________________________________________________
 
 
 
Not sending mail because you are in connected mode !!!
 
Error, ExecEnvType='LinuxKO' ...
 
 
Begining    : 2024-12-24 08:36:35
 
End          : 2024-12-24 08:36:35
 
Duration    : 00:00:00
 
 
</pre>
 
</pre>

Revision as of 16:07, 23 February 2025

Can't find if env is 'SqlCmd' or 'FreeTds' !
Sourcing sqwmsq_Global.lib v2025.01 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 'pmexpdba@gmail.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 pmexpdba@gmail.com (by default, send on error).
     -Locale    locale  : Force Locale for help display (fr,en).
     -Exec              : Execute commands (by default, display generated commands).