You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

SQL Safe includes a command line interface (CLI). The following table describes the CLI usage:

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.
<action>A keyword that tells SQLsafe what to do.
<filename>Specifies the file that contains command line arguments.

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

ActionsDescription
HelpDisplay more detailed help.
BackupBackup a database.
RestoreRestore a database.
RestoreLastRestore the most recent full backup of a database from the specified directory.
InstantRestoreInstant Restore a database.
VerifyVerify a database backup.
RestoreFileListOnlyList files for database in backup set.
RestoreHeaderOnlyList backup sets in an archive.
Browse TSMBrowse Tivoli Storage Management.
Expire TSMExpire Tivoli Storage Management backup archives.
Extract TSMExtract a file from Tivoli Storage Management.
LicenseRegister a Backup Agent license.
EncryptBackupPasswordEncrypt plain-text password for encrypted backups.
EncryptRestorePasswordEncrypt plain-text password for encrypted restores.
EncryptSqlPasswordEncrypt plain-text password for SQL Server logins.
EncryptWindowsPasswordEncrypt plain-text password for Windows logins.
InstallXspInstall SQL Server extended stored procedures for SQLsafe.
DeleteDelete backup archives older than the specified date.
LogShipBackupLog Shipping primary backup.
LogShipRestore          Log Shipping secondary restore.
ObjectLevelRecoveryRestore database objects.
Create-PolicyCreate a new policy.
Edit-PolicyEdit existing policy.
AddDatabaseDeploy new database for existing policy (LogShipping or Backup policy).
BckDstTypeBackup Destination.
BackupFileType

Backup File Type.

  • Help

For detailed descriptions and available options, you can use: SQLsafecmd help <action>.

  • Backup

To backup databases, you can use:

  SQLsafeCmd Backup <db_name> [<db_name>] <backup_archive> [options]

  SQLsafeCmd Backup <db_name> [<db_name>] TSM [options]

  SQLsafeCmd Backup <db_name> [<db_name>] TRUNCATEONLY [options]

where:

 

For detailed descriptions and available options, see the CLI Help (SQLsafecmd help <action>).

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