The LiteSpeed command-line utility (sqllitespeed.exe or sqllitespeedx32.exe) allows you to conduct LiteSpeed backups and restores directly from your operating system command-line. You must run the utility on the server that you are backing up or restoring. You may need to use sqllitespeedx32.exe if you have a 32-bit SQL Server on a 64-bit operating system.
sqllitespeed.exe ( -? | <options> )
Connection Options:
-S <server_name\instance_name>
(-U <login_id> -P <password> ) | -T
Backup Options:
-B <option>
[--nowrite]
[-D <database_name>]
[-f <file_name>]
[-g <filegroup_name>]
-F <backup_device_name>
[-n <backup_set_name>]
[-d <backup_description>]
[-Y <comment> ]
[-E <mirror_path>]
[-I]
[-N <file_number>]
[-W <options>]
[--AdaptiveCompression (Speed|Size) | -C <compression_level> ]
[-e <encryption_level> (-K <password>|--JobP <key>)]
[-y <date_time> | -r <number_of_days>]
[-s ]
[--doubleclick]
[--OLRMap
[--TempDirectory <path>]]
[--attachedfile <path_or_file>]
[-X <options>]
[-h 1...100]
[-o <buffer_count>]
[-x < maximum_transfer_size>]
[-t <number_of_threads>]
[-p (-1|0|1|2)]
[--LSECompatible ]
[-L (0|1|2) [--Trace logpath = "path"]]
[-V (0|1)]
Restore Options:
-R <restore_option>
-F <backup_device_name>
-D <destination_database_name>
[-N <file_number>]
[-f <file_name>]
[-g <filegroup_name>]
[--Read_Write_Filegroups]
[-K <password>| --JobP <key>]
[-W STATS = <number>]
[-W PASSWORD = "<media_password>"]
[-A <affinity_mask>]
[-h 1...100]
[-o <buffer_count>]
[-x <maximum_transfer_size>]
[-X <options>]
[--RestoreAsReadOnly
[--RestoreAsCompressed ]]
[--attachedfile <path_or_file>]
[-L (0|1|2) [--Trace logpath = "path"]]
Automated Restore Options:
-R Automated
[-D <destination_database_name>
[--DataFilePath <path> ]
[--LogFilePath <path> ] ]
-F <backup_filename> | (--BackupPath <path>
--BackupExtension <extensions>
--CheckSubfolders (0|1) )
[--BackupType <option> ]
--SourceServer <server_name>
--SourceDatabase <database_name>
[-K <password> | --JobP <key>]
[-W "STATS = <number>"]
[-W "PASSWORD = '<my_password>'"]
[--WithReplace (0|1)]
[-A <affinity_mask>]
[-h 1...100]
[-o <buffer_count>]
[-x <maximum_transfer_size>]
[-X <options>]
[--RestoreAsReadOnly
[--RestoreAsCompressed ]]
[-L (0|1|2) [--Trace logpath = "path"]]
[--DryRun (0|1)]
[--DropDatabaseOnFailure (0|1)]
[--DropDatabaseOnSuccess (0|1)]
TSM Connection Options:
-j <TSM_configuration_file>
-i < TSM_object>
[-c <TSM_client_node> ]
[-k <TSM_client_owner_password>]
[-l <TSM_filespace>]
[-q <TSM_query>]
[-a delete]
[-z <TSM_management_class>]
[--tsmpointtime yyyy-mm-dd hh:mm:ss]
[--tsmarchive]
Tape Arguments:
[-m (0|1|2|3)]
[-w]
[-u]
Cloud connection options:
[--CloudVendor <vendor name>]
[--CloudAccessKey <key name>]
[--CloudAccessKeyEnc <encrypted key name>]
[--CloudSecretKey <key name>]
[--CloudSecretKeyEnc <encrypted key name>]
[--CloudBucketName <bucket name>]
[--CloudRegionName <cloud region name>]
[--CloudEndpoint <cloud endpoint:port>]
[--CloudAcceptAllCertificates <0, 1>]
[--CloudGovRegion <government region number>]
[--CloudStorageClass <standard, standard-ia, standard-rrs>]
[--AWSUseServerSideEncryption <1, 0>]
[--AzureBlobType <block, page>]
[--CloudAutoStriping <1, 0>]
[--CloudAutoStripingThreshold <param size in GB>]
[--UseSSL <1, 0>]
Proxy connection options:
[--ProxyHost <proxy host name>]
[--ProxyLogin <proxy server login credential>]
[--ProxyPassword <proxy server password credential>]
[--ProxyPasswordEnc <encrypted proxy server password credential>]
[--ProxyPort <proxy server port number>]
NOTES:
-Argument |
--Argument |
Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(none) | --AdaptiveCompression |
Automatically selects the optimal compression level based on CPU usage or Disk IO. For more information, see Compression Methods. You can tell Adaptive Compression to optimize backups either for size or for speed. This argument accepts one of the following values:
| |||||||||||||||||||||
-A |
--Affinity |
Processor affinity designates specific processors to run LiteSpeed, while not allowing LiteSpeed to run on the remaining processors. This argument accepts decimal values and hexadecimal values. If a value begins with "0x" it is interpreted as hexadecimal. A positive 64-bit integer value translates to a binary mask where a value of 1 designates the corresponding processor to be able to run the LiteSpeed process. NOTE: 32-bit Windows is internally limited to a 32-bit mask. For example, you need to select processors 2, 3, and 6 for use with LiteSpeed. Number the bits from the right to left. The rightmost bit represents the first processor. Set the second, third, and sixth bits to 1 and all other bits to 0. The result is binary 100110, which is decimal 38 or hexadecimal 0x26. Review the following for additional information:
Tip: Before you start tuning the CPU Throttle or Affinity parameters to adjust backup performance, try limiting the number of threads. If you decide to use an affinity value other than default, it is recommended that you limit the threading as well. You may also want to consider using Adaptive Compression to maintain backup performance. For more information, see Adaptive Compression. | |||||||||||||||||||||
--ARPeriod |
Specifies a point in time to restore from where the time is measured in days, hours, minutes and seconds from the restore time. Set 0's for periods not used. @ARPeriod = N'DD.HH:MM:SS' | ||||||||||||||||||||||
--ARPointInTime |
Specifies a point in time to restore from: year, month, day, hours, minutes, seconds. @ARPointInTime = N'YYYY-MM-DD HH:MM:SS' | ||||||||||||||||||||||
(none) |
--AttachedFile |
Specifies filepaths to include in both backup and restore operations. The filepath can be either a single file or a directory. If it is a directory, then LiteSpeed recursively includes all files and subdirectories. All attached files are encrypted and compressed, with all pertinent backup parameters supported. This feature works for disk, tape, TSM, and Double Click Restore as well. You can supply multiple instances of this argument. When used within the context of a restore operation, the path parameter can be expanded to include a new destination. This form will take the syntax of <file_path> to <new_file_path>. The new filepath can be used to specify a new location but cannot rename a file. This argument only restores the attached files. It does not restore the database, just the files that were attached to that backup. NOTES:
You can supply multiple instances of this argument. | |||||||||||||||||||||
-B |
--Backup |
Backup operation. This argument accepts one of the following values:
| |||||||||||||||||||||
(none) | --BackupExtension |
When looking for database backups, LiteSpeed will only consider backup files that have the extensions you specify. The value of this parameter is a list of extensions, separated with commas. No value or asterisk (*) specifies any file extension. | |||||||||||||||||||||
-d |
--BackupDescription |
Specifies a description to store with the backup. This argument accepts variables. For more information, see LiteSpeed Variables. | |||||||||||||||||||||
-F |
--BackupFiles |
Specifies a backup location (e.g. C:\backups\AdventureWorks.bak). This argument accepts network destinations. You can supply multiple instances of this argument to use stripe backups. Examples: UNC Path: \\servername\share\path\filename Local path: c:\filedirectory\filename For TSM backups and TSM archives, this argument accepts the following formats:
This argument accepts variables. For more information, see LiteSpeed Variables. | |||||||||||||||||||||
-N |
--BackupIndex |
Specifies the particular backup to use when recasting, restoring, extracting or reading from files with multiple appended backups. You can run xp_restore_headeronly to query the files contained within the backup set given by backup_file_name. | |||||||||||||||||||||
-n |
--BackupName |
Specifies the name of the backup set. This argument accepts variables. For more information, see LiteSpeed Variables. | |||||||||||||||||||||
(none) | --BackupPath |
Specifies the directory where to search for the backup files. You can supply multiple instances of this argument. Each instance of this parameter must be followed by --BackupExtension and --CheckSubfolders arguments. | |||||||||||||||||||||
(none) | --BackupType |
Specifies backup types to use for the restore. This argument accepts one of the following values:
| |||||||||||||||||||||
-o |
--BufferCount |
Specifies the number of SQL Server buffers available for a LiteSpeed operation. The default value is set by SQL Server. NOTE: LiteSpeed defaults typically result in the best performance. You should only modify advanced options after careful planning and testing. | |||||||||||||||||||||
(none) |
--CheckDB |
Specifies checking the database integrity after running restores. Options include: --CheckDBPhysicalOnly, --CheckDBDataPurity, --CheckDBExtendedLogicalChecks, --CheckDBNoIndex, --CheckDBTableLocks, and --CheckDBNoInfoMessages. | |||||||||||||||||||||
(none) |
--CheckDBPhysicalOnly |
Specifies the checking database physical structure option. Note: Using this argument can significantly decrease the execution time when using large databases. | |||||||||||||||||||||
(none) |
--CheckDBDataPurity |
Specifies the checking database column values option for validity or out of range. | |||||||||||||||||||||
(none) |
--CheckDBExtendedLogicalChecks |
Specifies the performing consistency checks on indexes option. It checks XML indexes and spacial indexes. | |||||||||||||||||||||
(none) |
--CheckDBNoIndex |
Specifies the performing intensive checks of non-clustered indexes for user tables option. | |||||||||||||||||||||
(none) |
--CheckDBTableLocks |
Specifies the using table locks instead of using an internal database snapshot option. | |||||||||||||||||||||
(none) |
--CheckDBNoInfoMsgs |
Specifies the including informational messages in the notification report option. | |||||||||||||||||||||
(none) | --CheckSubfolders |
Specifies whether to use subfolders to look for database backups. This argument accepts one of the following values:
| |||||||||||||||||||||
-Y |
--Comment |
Appends a user comment to the backup. This argument accepts variables. For more information, see LiteSpeed Variables. | |||||||||||||||||||||
-C |
--CompressionLevel |
Specifies the compression level for the backup. Valid values are 0 through 8. 0 bypasses the compression routines. The remaining values of 1 through 8 specify compression with increasingly aggressive computation. 2 is the default value for disk backups and 7 is the default value for cloud backups. When choosing a compression level, it is best to try various options using your equipment and data to determine the best option for your environment. Use the Backup Analyzer to test the performance of different compression levels. For more information, see Test Optimal Backup Settings. NOTE: If both the compression level and Adaptive Compression option are passed in, LiteSpeed will not error out and will select and use Adaptive Compression. | |||||||||||||||||||||
-D |
--Database |
Name of database to be backed up or restored. | |||||||||||||||||||||
(none) | --DataFilePath |
Specifies a location for data files. | |||||||||||||||||||||
(none) | --DisconnectUsers |
Disconnect users on executing restore (in standby mode only). This argument accepts one of the following values:
| |||||||||||||||||||||
(none) | --DontUseCopyOnly |
Specifies that LiteSpeed is not to use copy-only backups when running restores. | |||||||||||||||||||||
(none) | --DontUseReplication | Specifies that LiteSpeed is not to include databases that are part of a replication plan when running restores. | |||||||||||||||||||||
-J |
--DoubleClick |
Creates a Double Click Restore executable. This argument accepts one of the following values:
| |||||||||||||||||||||
(none) | --DropDatabaseOnFailure |
Drops the restored database only if the restore fails. Use this option if you no longer need the restored database. For example, if you are only restoring the latest backup for testing purposes. This option contains two additional options to select. One or both options can be selected.On success restore and check database integrity operations - The database is dropped after a successful restore and database integrity check.On failure any of restore or check databases integrity operations - The database is dropped after failing the restore or database integrity check. This argument accepts one of the following values:
| |||||||||||||||||||||
(none) | --DropDatabaseOnSuccess |
Drops database on success only. Use this option if you no longer need the restored database. For example, if you are only restoring the latest backup for testing purposes. This option contains two additional options to select. One or both options can be selected.On success restore and check database integrity operations - The database is dropped after a successful restore and database integrity check.On failure any of restore or check databases integrity operations - The database is dropped after failing the restore or database integrity check. This argument accepts one of the following values:
| |||||||||||||||||||||
(none) |
--EncBackupKey |
Encrypts the specified key. The encrypted key is suitable for use with -jobp in a backup operation. | |||||||||||||||||||||
(none) |
--EncRestoreKey |
Encrypts the specified key. The encrypted key is suitable for use with -jobp in a restore operation. | |||||||||||||||||||||
-e |
--EncryptionLevel |
Specifies encryption level. Works in conjunction with the Key (K) parameter. This argument accepts one of the following values:
| |||||||||||||||||||||
(none) | --ExcludeDatabase |
Name of database(s) to exclude from this backup / restore. Example: --ExcludeDatabase Northwind Tip: The @ExcludeDatabase argument can be applied together with @MultiDatabaseType to exclude several databases from the process. | |||||||||||||||||||||
-y |
--Expiration |
Specifies the date and time when the backup expires. LiteSpeed will not overwrite this file until expiration datetime is passed. This argument accepts one of the following formats:
| |||||||||||||||||||||
-f |
--File |
Specifies a logical database file used for file or filegroup backups. You can supply multiple instances of this argument. | |||||||||||||||||||||
-g |
--FileGroup |
Specifies a database filegroup to include in the backup or restore. You can supply multiple instances of this argument. A filegroup backup is a single backup of all files in the filegroup and is equivalent to explicitly listing all files in the filegroup when creating the backup. Files in a filegroup backup can be restored individually or as a group. | |||||||||||||||||||||
-X | --IOFlags |
Specifies if LiteSpeed should wait and retry the read or write operation on failure. You can define retry options using the following parameters:
NOTE: This functionality is only available for disk and cloud operations. | |||||||||||||||||||||
(none) |
--JobP |
Specifies an encrypted key. (Similar to -K). NOTE: Automated Restore requires that you use the same password for all encrypted backups. | |||||||||||||||||||||
-K |
--Key |
Value used to generate the encryption key for the encryption algorithm. If you do not supply encryption key, then the program will not encrypt the backup. If you use the wrong encryption key, the restore will fail. Caution: When encrypting data, take care not to lose the encryption key; a backup cannot be restored or recovered without the original encryption key. Example of key: 'Mypassword' NOTE: Automated Restore requires that you use the same password for all encrypted backups. | |||||||||||||||||||||
(none) | --LogFilePath |
Specifies a location for log files. | |||||||||||||||||||||
-L |
--LogLevel |
Creates a log file. This argument accepts one of the following values:
The default output directory is C:\Documents and Settings\All Users\Application Data\Quest Software\LiteSpeed\SQL Server\Logs (or C:\ProgramData\Quest Software\LiteSpeed\SQL Server\Logs) (or C:\ProgramData\Quest Software\LiteSpeed\SQL Server\Logs). To log to a different directory run this utility with the following argument: --trace logpath = "path". | |||||||||||||||||||||
(none) | --LSECompatible |
Produces a backup that is compatible for use with LiteSpeed Engine for SQL Server. The parameter can be used whenever a new backup file is created and should only be set when backups are needed for cross-compatibility between the products. This switch will force modifications to internal settings such as the thread count, striping model, and encryption levels. In some cases, performance may be degraded. The parameter is ignored when appending to a backup file created without the switch. This argument accepts one of the following values:
| |||||||||||||||||||||
-x |
--MaxTransferSize |
Specifies the largest unit of transfer in bytes to be used between SQL Server and LiteSpeed. The possible values are multiples of 65536 bytes (64 KB) ranging up to 4,194,304 bytes (4 MB). The default is 1048576 (1 MB). | |||||||||||||||||||||
-E |
--MirrorFiles |
Mirrors the backup file (copies the backup to multiple locations). If you back up the primary to a set of striped files, all mirrored backups must match the primary in the number of stripes in each mirror. This argument accepts variables. For more information, see LiteSpeed Variables. | |||||||||||||||||||||
(none) |
--MultiDatabaseType |
Produces a backup that includes several types of databases. Types can include: all, system, user, or selected databases. This argument accepts one of the following values:
| |||||||||||||||||||||
-Z | --NoWrite |
The argument is similar to backup log xxx to disk = 'NUL'. When the backup is completed, it is not written to disk. NOTES:
| |||||||||||||||||||||
-M |
--OLRMap |
Generates a map file during a backup for Object Level Recovery. This argument accepts one of the following values:
| |||||||||||||||||||||
-I |
--Overwrite |
Re-initializes (overwrites and replaces) the target backup files. For TSM backups, this will create the TSM object and version the backup based on the retention policy. | |||||||||||||||||||||
-P |
--Password |
Specifies the user password. Passwords are case-sensitive. Required if the connection type is not a trusted connection. | |||||||||||||||||||||
-p |
--Priority |
Specifies the priority of the LiteSpeed process compared to other processes running on the same server. This argument accepts one of the following values:
| |||||||||||||||||||||
(none) |
--Read_Write_Filegroups |
Specifies a partial backup, which includes the primary filegroup and any read-write secondary filegroups. | |||||||||||||||||||||
-r |
--RetainDays |
Specifies a number of days to retain the backup. LiteSpeed will not overwrite this file for this number of days. | |||||||||||||||||||||
-R |
--Restore |
Restore operation.This argument accepts one of the following values:
| |||||||||||||||||||||
(none) | --RestoreAsCompressed |
Works in conjunction with --RestoreAsReadOnly, creates a folder if it does not exist, and then compresses it. This argument accepts one of the following values:
| |||||||||||||||||||||
(none) | --RestoreAsReadOnly |
Instructs the restore operation to leave the database in read-only mode. This argument accepts one of the following values:
Using this option, you can restore a user database into an NTFS compressed folder or restore a tlog to a read-only database in a compressed folder. NOTES:
| |||||||||||||||||||||
-S |
--Server |
Specifies the instance of Microsoft SQL Server to connect to. This argument accepts one of the following values:
If no server is specified, the LiteSpeed command-line utility will connect to the default instance of SQL Server on the local computer. | |||||||||||||||||||||
-? |
--ShowHelp |
Displays the syntax summary of the LiteSpeed command-line utility. | |||||||||||||||||||||
-s |
--Skip |
Skips normal retention checks and overwrites the backup that has not expired.
| |||||||||||||||||||||
(none) | --SourceDatabase |
Backups of this database are the source for restore. | |||||||||||||||||||||
(none) | --SourceServer |
Backups created on this instance of SQL Server are the source for restore. | |||||||||||||||||||||
-m |
--TapeFormat |
Initializes the media on the device. This argument only applies to tape backups. This argument accepts one of the following values:
NOTE: Any successful format operation (values 1, 2, and 3; not all are available to all drive types) lays down a LiteSpeed tape header that will identify this tape as containing LiteSpeed backups. Using @init=1 (or -I in the command line) will not lay down a tape header. | |||||||||||||||||||||
-w |
--TapeRewind |
Applies only to backing up and restoring tape. This argument accepts one of the following values:
| |||||||||||||||||||||
-u |
--TapeUnload |
Applies to tape backups and restores. This argument accepts one of the following values:
| |||||||||||||||||||||
(none) |
--TempDirectory |
Specifies a temporary directory for use with Object Level Recovery. Use this argument when the default Windows temp directory does not have enough free disk space for the restore process.
| |||||||||||||||||||||
-t |
--Threads |
Determines the number of threads used for the backup. You will achieve the best results by specifying multiple threads, but the exact value depends on several factors including: processors available, affinity setting, compression level, encryption settings, IO device speed, and SQL Server responsiveness. The default is n-1 threads, where n is the number of processors. | |||||||||||||||||||||
-h |
--Throttle |
Specifies the maximum CPU usage allowed. The argument accepts an integer value between 1 and 100. The default value is 100. This is the percentage of the total amount of CPU usage (across all enabled processors) available. TIP: Before you start tuning the CPU Throttle or Affinity parameters to adjust backup performance, try limiting the number of threads. If you decide to use an affinity value other than default, it is recommended that you limit the threading as well. You may also want to consider using Adaptive Compression to maintain backup performance. For more information, see Adaptive Compression. | |||||||||||||||||||||
--UDT |
Create table script:
| ||||||||||||||||||||||
-U |
--UserId |
Specifies user login ID. Required if the connection type is not a trusted connection. Login IDs are case-sensitive. | |||||||||||||||||||||
-V | --Verify |
Performs a restore verification on the backup file just created (if backup was successful).
| |||||||||||||||||||||
-T |
--WindowsAuth |
Uses a trusted connection (to the server) instead of requiring a password. | |||||||||||||||||||||
-W |
--With |
Specifies strings that will be passed directly to SQL Server. You can supply multiple instances of this argument. Some of the accepted parameters are the following:
| |||||||||||||||||||||
(none) | --WithReplace |
Instructs LiteSpeed to create the specified database and its related files even if another database already exists with the same name. The existing database is deleted. This argument accepts one of the following values:
|
TSM-specific arguments work in conjunction with the LiteSpeed arguments. See Syntax and Examples for more information.
-Argument |
--Argument |
Description |
---|---|---|
(none) |
--TSMAdminName |
Specifies the TSM administrative user name that has client authority for the TSM node. Some operations may require an administrative user with client owner authority to be specified in order to open a TSM session. The correct username and password may be obtained from the TSM administrator. |
(none) |
--TSMAdminPwd |
Specifies the plain text password of the administrative user which is used to log in to the TSM server and start the TSM session. |
(none) | --TSMArchive |
Specifies to store the backup as a TSM archive. This argument accepts one of the following values:
|
-c |
--TSMClientNode |
Specifies the TSM server LiteSpeed connects to during backups and restores. Not required, if specified in the options file or if backing up with the Passwordaccess Generate option. |
-k |
--TSMClientOwnerPwd |
Specifies the TSM client owner user password. Not required, if specified in the options file or if backing up with the Passwordaccess Generate option. |
(none) | --TSMDeviceTimeoutMinutes |
Specifies how long to wait for a TSM device. |
(none) | --TSMDSMI_Dir |
DSMI_DIR path if needed. |
(none) | --TSMDSMI_Log |
DSMI_LOG path. |
-j |
--TSMConfigFile |
Specifies the TSM configuration file. |
-i |
--TSMFile |
Defines the TSM filespace, high level and low level. This argument accepts the following format: tsm_filespace\tsm_high_level\tsm_low_level where:
NOTE: You may only store one item the location specified by this argument. It is not possible to append an object to this location. You can use the -I command-line argument or @init to back up to a non-unique location. |
-l |
--TSMFileSpace |
Specifies the TSM file space, the logical space on the TSM server. It can be the drive label name or UNC name. You can supply multiple instances of this argument. NOTE: IBM recommends that an application client should select a unique file space; it is recommended that LiteSpeed users follow this practice with a specific file space reserved for LiteSpeed backups. |
(none) | --TSMLogname |
Log name. |
-z |
--TSMMgmtClass |
Specifies the TSM management class. If not specified, LiteSpeed uses the default management class. |
(none) |
--TSMPointInTime |
Specifies the date for restore/to filter results. If it is not passed, LiteSpeed will choose the most recent archived backup. The format is yyyy-mm-dd hh:mm:ss. NOTE: If the backup was a striped backup and the point-in-times of the various striped files are different (rare but can be different a second or so), then the most recent of the times must be chosen. |
Cloud-specific arguments work in conjunction with the LiteSpeed arguments. See Syntax and Examples for more information.
-Argument |
--Argument |
Description | |
---|---|---|---|
(none) | --AWSUseServerSideEncryption |
The @AWSUseServerSideEncryption argument enables the encryption of data stored at rest in Amazon S3. This argument accepts one of the following values:
| |
(none) | --AzureBlobType |
The @AzureBlobType argument specifies the types of blobs that can be stored in the Microsoft Azure cloud storage. This argument accepts one of the following values: "Block", "Page".
| |
(none) | --CloudAccessKey |
The @CloudAccessKey argument specifies the name of the unique Cloud Web Service alphanumeric access key that identifies each user. The selections include Amazon Access Key, Azure Account Name, Google e-mail styled account, S3 Compatible Storage Access Key. | |
(none) | --CloudAccessKeyEnc |
The @CloudAccessKeyEnc argument specifies the name of the encrypted unique Cloud Web Service alphanumeric access key that identifies each user. | |
(none) | --CloudAutoStriping |
This parameter enables automatic file striping for LiteSpeed cloud backups. | |
(none) | --CloudAutoStripingThreshold |
This parameter contains the stripe size in GBs. LiteSpeed logic uses the database size to make a decision about the number of stripes needed for LiteSpeed cloud backups. For example, if you have a database with a size of 200GB and set @CloudAutoStripingThreshold = 50, then LiteSpeed uses 200/50 = 4 stripes. | |
(none) | --CloudBucketName |
The @CloudBucketName argument specifies the name of the container for cloud objects. Bucket names must be at least 3 and no more than 63 characters long. The selections are Amazon Bucket Name, Azure Container Name, Google Bucket Name, Google Bucket Name requirements are described at https://cloud.google.com/storage/docs/naming, S3 Compatible Storage Bucket Name, | |
(none) | --CloudGovRegion |
The @CloudGovRegion argument enables a special restricted region for the US Government use in Amazon S3 and Azure Clouds. This argument accepts one of the following values:
| |
(none) | --CloudRegionName |
The @CloudRegionName argument specifies the name of the Cloud Web Service region to use for a bucket. Example values are but not limited to: us-east-1, us-east-2, us-west-1, us-west-2, ca-central-1, eu-central-1, eu-west-1, eu-west-2, ap-south-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, ap-northeast-2, sa-east-1, N'Germany' and N'China'. | |
(none) | --CloudSecretKey |
The @CloudSecretKey argument specifies the name of the Cloud Web Service secret key that is assigned when you initially get a Cloud account. | |
(none) | --CloudSecretKeyEnc |
The @CloudSecretKeyEnc argument specifies the name of the encrypted Cloud Web Service secret key that is assigned when you initially get a Cloud account. | |
(none) |
--CloudStorageClass |
The @CloudStorageClass argument specifies a range of storage classes established for different use cases including: For Amazon S3:
For Google Storage:
| |
(none) | --CloudVendor |
The @CloudVendor argument specifies the name of the cloud service provider. The argument accepts one of the following values: "AmazonS3", "AzureBlob", "GoogleStorage" or "S3Compatible". | |
(none) | --CloudEndpint |
The @CloudEndpoint argument specifies the endpoint for S3 Compatible Storage and custom endpoint for Amazon S3 service (in case of VPC). Format: servername:port .Example values: "servername", "servername:port", "ip:port", "10.0.0.200:9021". | |
(none) | --CloudAcceptAllCertificates |
The @CloudAcceptAllCertificates argument instructs LiteSpeed accept self-signed certificates for S3 Compatible Storage. This argument accepts one of the following values:
Note: Delete backups is not supported in Maintenance Plans with this option. | |
(none) | --GSProject |
DEPRECATED LiteSpeed 8.8: Was used to store for the Google Cloud Storage project ID; the project ID is now obtained from login. This parameter is retained for compatibility with old backup/restore scripts. | |
(none) |
--UseSSL |
The @UseSSL argument specifies that the connection uses SSL security. This argument accepts one of the following values:
|
Proxy-specific arguments work in conjunction with the LiteSpeed arguments. See Syntax and Examples for more information.
-Argument |
--Argument |
Description | |
---|---|---|---|
(none) |
--ProxyHost |
The @ProxyHost argument is optional and specifies the name of the proxy host name that is running the proxy server.
| |
(none) | --ProxyLogin |
The @ProxyLogin argument is optional and specifies the proxy server login credential.
| |
(none) | --ProxyPassword |
The @ProxyPassword argument is optional and specifies the proxy server password credential.
| |
(none) | --ProxyPasswordEnc |
The @ProxyPasswordEnc argument is optional and specifies the encrypted proxy server password credential.
| |
(none) | --ProxyPort |
The @ProxyPort argument is optional and contains the port number of the proxy server. The TCP/IP port values can be 1-65535.
|
Backup the Northwind database using a trusted connection to the backup device c:\temp\Northwind.bak:
sqllitespeed.exe -B Database -T -D Northwind -F "C:\temp\Northwind.bak"
Backup the Northwind database, log errors (if any) to a specified directory:
sqllitespeed.exe -B Database -D Northwind -F "C:\temp\Northwind.bak" -L1 --trace logpath="C:\backup_logs"
Write a database backup where each failure can be retried once after a 30 second wait:
sqllitespeed.exe -B database -D foo -F c:\test.bkp -X disk_retry_count=1 -X disk_retry_wait=30
Back up to TSM with the Passwordaccess Generate option:
sqllitespeed.exe -Bdatabase -DNorthwind -L1 -i"fsMH\nw\%D" -j"C:\TSM\baclient\dsm_pg.opt" -I -z"SPS_MGTD" -S"MyServer\Inst2" -U"sa" -P"***"
Create a differential backup of the Northwind database:
sqllitespeed.exe -Bdatabase -DNorthwind -i"fsMH\nw\%D-%T" -c"10.0.1.200" -k"password" -j"c:\program files\Tivoli\TSM\baclient\dsm.opt" -WDIFFERENTIAL -I -n"Northwind Diff Backup" -d"Differential Backup of Northwind on 4/12/2011 1:50:58 PM"
Restore the Northwind database:
sqllitespeed.exe -RDatabase -j"C:\TSM\baclient\dsm.opt" -i"fsMH\nw\Northwind" --TSMPointInTime "2011-04-12 16:57:22" -N1 -DNorthwind -WREPLACE -A0 -L1 -S"w2k3-22" -U"sa" -P"***"
Restore the Northwind database from the backup device c:\temp\Northwind.bak using variables:
sqllitespeed.exe -R Database -D Northwind -F "C:\temp\%D.bak"
Restore the most recent full and drop database:
sqllitespeed.exe -R Automated -D LiteSpeedLocal_TestRestore --DataFilePath "D:\DATA" --LogFilePath "D:\DATA" --DropDatabase 3 --BackupPath "D:\temp" --BackupExtension "" --CheckSubfolders 0 --SourceServer LITESPEED\SQL2005 --SourceDatabase LiteSpeedLocal --BackupType full -K ****** --WithReplace 1 --DropDatabaseOnFailure 1 --DropDatabaseOnSuccess 1 -S"LITESPEED\SQL2005" -T
Restore the most recent full backup and related differential and transaction log backups following this full to a new database.
sqllitespeed.exe -R Automated --DataFilePath "D:\DATA" --LogFilePath "D:\DATA" --BackupPath "D:\temp" --BackupExtension "" --CheckSubfolders 1 -D LiteSpeedLocal_Copy --SourceServer LITESPEED\SQL2005 --SourceDatabase LiteSpeedLocal --BackupType tlog -K ****** -S"LITESPEED\SQL2005" -T
Restore the most recent Fast Compression backups.
sqlLiteSpeed.exe -R Automated -D "LiteSpeedLocal_AutomatedRestore" --BackupPath "D:\temp\FC\" --BackupExtension "" --CheckSubfolders 0 -K "*******" --SourceServer "LITESPEED\SQL2005" --SourceDatabase "LiteSpeedLocal" --BackupType "diff" --JobP "5jzOEztgLxQ=" --WithReplace 1 -S "LITESPEED\SQL2005" -U "sa" -P "******"
Restore the most recent striped backup.
sqllitespeed.exe -R Automated -D "NEWDB" --DataFilePath "D:\DATA" --LogFilePath "D:\DATA" --BackupPath "D:\temp" --BackupExtension "stripe1" --CheckSubfolders 0 --BackupPath "E:\temp" --BackupExtension "stripe2" --CheckSubfolders 0 --SourceServer "LITESPEED\SQL2005" --SourceDatabase "FOX" --BackupType "full" -S "LITESPEED\SQL2005" -T
View candidates for Automated Restore.
sqllitespeed.exe -R Automated --BackupPath d:\temp\TEST --BackupExtension "bak,bkp" --CheckSubfolders 1 --SourceServer LITESPEED\SQL2005 --SourceDatabase "LiteSpeedLocal" --BackupType "diff" --DryRun "1" -S "LITESPEED\SQL2005" -T
Restore attached files only:
sqllitespeed.exe -R attachedfilesonly -F "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\CapacityManagerRepository_Full_200903012353_20091006124204.bak" -N 1 --attachedfile "'C:\temp\CProg—29-Sep-2009 19-22-51-233.txt' to 'C:\CProg.txt'" -S "spb9771" -T
Encrypt a password for the restore operations.
sqllitespeed.exe --EncRestoreKey -K "RF^t%7MF"
Restore Objects using the UDT argument. Create table with native types, if possible; othervise (CLR UDT) create with UDT.
olr.exe -F "C:\temp\FOX_full.bak" -K****** -N3 -C -Y Database -Q d:\temp\create_database_FOX.sql --UDT 0
0 (success) or 1 (failure)
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Términos de uso Privacidad Cookie Preference Center