Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SQL Safe Backup provides you with a Command Line Interface (CLI) to automate its functions. The CLI commands allow you to make changes to your SQL Safe Backup configurations across multiple SQL Server instances in a few lines of text, saving you time.

About Command Line Interface (CLI)

A Command Line Interface (CLI) is a user interface that allows you to interact with the operating system. The interaction is performed through commands where you type an type a specific command and the operating system performs an action.

Tip

Make sure you are aware of the proper command format for each action you want to perform.

SQL Safe Backup CLI Usage

The following commands help you automate your SQL Safe Backup functions:

UsageDescription
SQLsafeCmd <action> [options]Perform an action.
SQLsafeCmd help <action>

Display detailed help for an action.

SQLsafeCmd -ArgsFile <filename>Perform the action defined within an argument file.

where:

ActionDescription
<action>A keyword that tells SQL Safe what to do.
<filename>Specifies the file that contains command line arguments.

 


When you use the SQLsafeCmd command, the following actions can be performed:

ActionsDescriptionExample
HelpDisplay detailed descriptions and available options.
SQLsafecmd
SQLsafeCmd help <action>

Backup

Backup a database.
SQLsafecmd
SQLsafeCmd help backup
RestoreRestore a database.
SQLsafecmd
SQLsafeCmd help restore
RestoreLastRestore the most recent full backup of a database from the specified directory.
SQLsafecmd
SQLsafeCmd help restorelast
InstantRestoreInstant Restore a database.
SQLsafecmd
SQLsafeCmd help instantrestore
VerifyVerify a database backup.
SQLsafecmd
SQLsafeCmd help verify
RestoreFileListOnlyList files for the database in the backup set.
SQLsafecmd
SQLsafeCmd help restorefilelistonly
RestoreHeaderOnlyList backup sets in an archive.
SQLsafecmd
SQLsafeCmd help restoreheaderonly

Browse TSM

Browse Tivoli Storage Management.
SQLsafecmd
SQLsafeCmd help browse TSM
Expire TSMExpire Tivoli Storage Management backup archives.
SQLsafecmd
SQLsafeCmd help expire TSM
Extract TSMExtract a file from Tivoli Storage Management.
SQLsafecmd
SQLsafeCmd help extract TSM
LicenseRegister a Backup Agent license.
SQLsafecmd
SQLsafeCmd help license
EncryptBackupPasswordEncrypt plain-text password for encrypted backups.
SQLsafecmd
SQLsafeCmd help encryptbackuppassword
EncryptRestorePasswordEncrypt plain-text password for encrypted restores.
SQLsafecmd
SQLsafeCmd help encryptrestorepassword
EncryptSqlPasswordEncrypt plain-text password for SQL Server logins.
SQLsafecmd
SQLsafeCmd help encryptsqlpassword
EncryptWindowsPasswordEncrypt plain-text password for Windows logins.
SQLsafecmd
SQLsafeCmd help encryptwindowspassword
InstallXsp
InstallXSPInstall SQL Server extended stored procedures for SQLsafe.
SQLsafecmd
SQLsafeCmd help installxsp
DeleteDelete backup archives older than the specified date.
SQLsafecmd
SQLsafeCmd help delete
LogShipBackupLog Shipping primary backup.
SQLsafecmd
SQLsafeCmd help logshipbackup
LogShipRestore         Log Shipping secondary restore.
SQLsafecmd
SQLsafeCmd help logshiprestore
ObjectLevelRecoveryRestore database objects.
SQLsafecmd
SQLsafeCmd help objectlevelrecovery
Create-PolicyCreate a new policy.
SQLsafecmd
SQLsafeCmd help create-policy
Edit-PolicyEdit existing policy.
SQLsafecmd
SQLsafeCmd help edit-policy
Copy-PolicyCopy existing policy.SQLsafeCmd help copy-policy
AddDatabaseDeploy a new database for the existing policy (LogShipping or Backup policy).
SQLsafecmd
SQLsafeCmd help adddatabase
BckDstTypeBackup Destination.SQLsafecmd help bckdsttypeBackupFileType

Backup File Type.

MountVDBCreate a new virtual database.SQLsafeCmd help MountVDB
UnmountVDBDelete a virtual database.SQLsafeCmd help UnmountVDB
CleanupVDBCleanup unused virtual database temporary files.SQLsafeCmd help CleanupVDB
SQLsafecmd help backupfiletype
Info

The examples in the above table provides table provide you with commands to use in Command Prompt. Those commands will display detailed descriptions and available options for each action.

SQL Safe is a high-performance backup and recovery solution for your SQL Servers. Learn more > >

...



Scroll pdf ignore
Newtabfooter
aliasIDERA
urlhttp://www.idera.com
 | 
Newtabfooter
aliasProducts
urlhttps://www.idera.com/productssolutions/sqlserver
 
Newtabfooter
aliasPurchase
urlhttps://www.idera.com/buynow/onlinestore
 | 
Newtabfooter
aliasSupport
urlhttps://idera.secure.force.com/
 | 
Newtabfooter
aliasCommunity
urlhttp://community.idera.com
 
|
 
Newtabfooter
aliasResources
urlhttp://www.idera.com/resourcecentral
 | 
Newtabfooter
aliasAbout Us
urlhttp://www.idera.com/about/aboutus
 
Newtabfooter
aliasLegal
urlhttps://www.idera.com/legal/termsofuse

...