Higher compression levels result in smaller backup files, but they also may consume additional CPU. If the server does not have sufficient CPU, then the backup may take longer to complete. The Backup Analyzer evaluates different settings, such as compression level, striping, and backup destinations, to help you determine optimal backup settings.
NOTE: When running the Backup Analyzer, follow these guidelines for the best results:
Minimum: 1 GB sample size.
Recommendation: 10 GB sample size. The combination of compression levels, encryption options, and backup locations should be considered. For example, if you sample 4 GB of data with 10 different tests, LiteSpeed will take the same amount of time as it takes to back up 40 GB. On very large databases, you can speed up the analysis by reducing the number of backup combinations or by reducing the amount of sample data.
The Backup Analyzer wizard guides you through selecting the backup parameters to test. The wizard tests all of the different combinations of your selected parameters by backing up a portion of the database. It does not interfere with existing backup schedules or sets.
To run the Backup Analyzer wizard
Select the Backup Manager pane (CTRL+1).
Right-click the database and select Backup Analyzer Wizard.
Tips:
NOTE: After the required number of bytes is received for analysis, the process is intentionally aborted. This generates the VDI error messages in the LiteSpeed log files and the SQL Server error log. Please ignore them.
You can schedule analyzing from within the Backup Analyzer Wizard. An SQL Server job with the name "LiteSpeed Analyzer SERVERNAME.DATABASENAME" is created. View the list of Backup Analyzer jobs directly from the Backup Analyzer tab by clicking "Show Analyzer Jobs." Right-click on the job. You can change schedule, start/stop, disable or even delete the job. To view the script, select the "View in Job Manager" option and open the job properties from the Job Manager module. You can then go to the job step details.
The Backup Analyzer tab consists of the toolbar, graph, and grid. The Backup Analyzer toolbar is used to select the following items:
The Backup Analyzer tab presents the test results in a graph and grid format:
Graph—Displays the backup duration and compression amount for each test in a bar graph so you can easily compare the results between size and duration. If you hover the mouse over the bar graph, test number, size, and duration are displayed. If you select a test in the grid, LiteSpeed indicates the corresponding test in the bar graph with a yellow border around it. You can view previous tests by changing the Existing test field.
Grid—Displays the details of each test in columnar format. LiteSpeed indicates its recommendation with the number indicated first in the Test Number column and a yellow box around the test bar graph. Review the following for additional information:
Tip: .Use the Grid horizontal scroll bar to view other table columns. |
Column | Description |
---|---|
Test Number |
The number assigned by the Backup Analyzer. |
Level |
The compression level that is used for a particular database backup test. |
Encryption |
Indicates enabled encryption for the database backup. |
Estimated Duration |
The approximate time allotted to run the database backup. |
Estimated Backup Size (MB) |
The approximate size of the backed up database. |
Database Size (MB) |
The amount of disk space the database occupies. |
Compression (MB) |
The amount of disk space you can save with this compression ratio. |
Compression (%) |
Data compression ratio. |
Read Speed (MB/Sec) | Maximum read speed. |
Throughput (MB/Sec) | Actual speed of processing data (compression and encryption). |
Backup Speed (MB/Sec) | Virtual write speed of the backup. Compare this value to Throughput and Read Speed to determine if you are experiencing a write-bound issue. |
Write Speed (MB/Sec) | Actual write speed. It shows how quickly the compressed data stream is written to the destination disk. |
Stripes | Number of stripes associated with the backup. |
Destination | Backup destination directory location. |
Threads | Number of threads associated with the backup. |
You can double-click a row for more information about the test.
Tip: For panes that have grids, you can sort, group, move, and remove the columns:
|
A LiteSpeed backup template contains a set of backup parameters that describe the types of databases and the types of backups you want to perform.
Notes: This feature is only supported for disk and cloud LiteSpeed backups. |
Backup Templates can be easily updated and changes deployed to all instances. LiteSpeed tracks the instances where each template is deployed, making re-deployment very easy. Backup Templates can also be easily removed from an instance if they are no longer required.
Using LiteSpeed backup templates in your backup routine can help you manage multiple SQL Server instances. You do not have to manage backup jobs for each database or manage maintenance plans for one server at a time. Instead, create and deploy a backup template.
If your company's policy changes, you can quickly edit the template to comply with the new standards and re-deploy. LiteSpeed versions the templates and the deployments, so it is easy to see if an instance needs to be updated.
To create a Backup Template
Select the Backup Manager pane (CTRL+1).
In the Backup Templates tab, click New on the toolbar. If you do not use the central repository, click Backup Templates on the toolbar.
Review the following additional information about the backup type and destination:
Backup Type |
Select what backups will occur after you deploy this template on a server instance.
The default backup name and description use the following information:
You can specify custom backup name and description using both the LiteSpeed variables and text. For more information, see LiteSpeed Variables. |
Select Databases |
Select databases you want to back up. NOTES:
|
Backup Destination |
Decide whether you want to save a default backup destination name in the template or specify it at the deployment time. If you specify a backup destination in a template, you can override backup destinations for each instance at deployment time. Each Backup Template remembers if you override these settings to make future redeployments easier. Backup file name as well as the backup folder can include the %SERVER% variable, that may be particularly useful when backing up many instances to the same network share. NOTE: Fast Compression handles the naming of files automatically. For more information, see Backup Files and Folders. You can either supply the backup destination at deployment time or save the default backup destination in the template. The backup destinations include disk and cloud. You can additionally select Cloud Accounts and Proxy Settings. For more information, see Cloud Account Settings. We have a few customers who would like to be able to create and deploy backup templates but require the previous backup be overwritten. In order to do this, when a Full backup template is created, we need to add an option (that defaults to Append as it is now) to allow for an Overwrite option (there is no need for the unique option we provide in the Backup Wizard). TIP: You can select the option to overwrite existing media when a full backup template is created. |
Set Backup options. Review the following for additional information:
Optimize the Object Level Recovery speed |
Select to create an index of objects in the backup file. This option is only available for LiteSpeed backups. The default is enabled. NOTE: Before you can recover objects or execute a SELECT statement, you must read the backup file to create an index of restorable objects. The index is an .lsm file. During the backup process the .lsm file is created in the temp directory and attached to the backup file after the backup is completed. If you select this option, LiteSpeed uses the index in the backup file to read the backup file, which makes the object level recovery process much faster. |
Create Double Click Restore executable |
Select to create an executable backup file or a Double Click Restore Loader that allows you to restore a backup on a server instance that does not have LiteSpeed installed. For more information, see Double Click Restore Executables. NOTE: A Double Click Restore can only be created for a disk file. |
Perform checksum before writing to media |
Select to verify checksums when a backup is created. Additionally, you can control the response to an error. If you select the Continue on error option, the backup is executed despite encountering an invalid backup checksum. |
Continue on error |
Select this option to continue running the backup even if an invalid checksum is encountered. |
Fast Compression Type |
Select whether you prefer to create a unique file for each backup or you prefer to manage a single file for each backup set (a backup set is composed of one full database backup plus all associated differential backups):
The Self-Contained Backup Sets option automatically verifies the Full backup exists. The Separate Backup Files option performs the same validation by default.
| |
Fast Compression Backup Options |
You can set the following thresholds to define when to issue a full backup:
Fast Compression measures the amount of data change by either querying SQL Server or by comparing the size of the last differential to the last full backup. The default option is to query actual data pages. It provides the most accurate way to determine the amount of data change. If the query fails for any reason, Fast Compression will automatically run a size comparison to the last Differential backup. For example, set this parameter to 20%, and should the database change by 20% or more, Fast Compression will automatically run a Full backup. The larger the threshold, the larger the differential backups can grow before Fast Compression triggers the next Full backup. Regardless of how much underlying database data has changed, when exceeding the maximum interval (in days) between full backups, Fast Compression will force a full backup. NOTES:
Select the Extension for backup files checkbox to enter or change the backup file name extension. The default is set to bkp. NOTE: You can select the backup file extension for Fast Compression and make the new default, bak, for new items. For an existing item that does not have an extension defined, bkp is displayed when the item is edited (maintenance plans and templates). | |
Backup Escalation |
This option causes LiteSpeed to issue a full backup, if one of the following problems is discovered in the current backup set:
NOTE: If a problem is detected and a full backup is created through escalation, an error will be returned. | |
Verification |
TIP: "Cleanup" means SmartCleanup. For more information, refer to SmartCleanup. Make sure the backup files in the backup set have integrity. This provides an added level of insurance the backup files can be restored. Verification failures appear in the LiteSpeed UI Console and, optionally, as job failure notifications. A verification failure after a differential backup will trigger the backup escalation process, if selected. The Verification options include:
The Cleanup options include:
|
Set Compression and Encryption options. Note that you can specify both the compression level and Adaptive Compression option. LiteSpeed will select and use Adaptive Compression if it is supported by the target server LiteSpeed version. Otherwise, the specified compression level will be used.
Adaptive Compression |
LiteSpeed automatically selects the optimal compression based on throughput and CPU usage and optimize backups either for size or for speed (default). NOTE: Adaptive Compression is only available with LiteSpeed 6.5 or later; Enterprise license. | |
Compression level |
Select 0 for no compression or 1-8 (default 2) to compress the file. For more information, see Compression Methods. NOTE: Higher compression levels result in smaller backup files, but they also take longer to complete.
| |
Encrypt backup |
Select this checkbox to encrypt the backup. Then, select the encryption level and enter the encryption password. |
Review the following additional information about the advanced options:
Compression 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. |
Max transfer size |
Enter the maximum backup file size in bytes. . The possible values are multiples of 65536 bytes (64 KB) ranging up to 4,194,304 bytes (4 MB). The default is 1048576. |
Buffer count |
Enter the number of SQL Server buffers available for a LiteSpeed operation. The default is set by SQL Server. |
CPU throttle |
Enter the maximum percentage of CPU that LiteSpeed can use for the process. The default is 100. |
Processor affinity |
Click |
Processor priority |
Select the priority of the backup over other transactions or processes running on the same server. The default is Normal. |
Comment |
User comment written into the backup header. Is blank by default. |
Logging level |
Select a logging level to define what events to log for the console. You can find the log events in the Application Event Log. |
Network resilience |
If LiteSpeed fails to write disk backups or reads from disk, it waits and retries the operation. You can enable and disable and control the number of times to retry and the amount of time to wait before retrying.
|
TIPS:
|
NOTE: LiteSpeed defaults typically result in the best performance. You should only modify advanced options after careful planning and testing. For more information, see Configure LiteSpeed Defaults.
Configure notification options. You can select an existing notification profile or specify operators at deployment.
TIP: Variables defined in the maintenance plan can be used to format the Subject Line. There is also help information inside the task that lists the available Subject Line variables.
NOTE: The SQL Server Agent must be configured to send email using Database Mail. Review the following for additional information:
For a Transaction Log backup you can nominate a backup folder independent of the backup folder for Fast Compression / Full backups. Do this at the T-Log Destination step. Further to this, the backup folder can be stipulated for individual instances using the Deployment Wizard.
Specify backup cleanup options. For more information, see SmartCleanup.
NOTE: The "Do not delete if Archive bit is set" option is available for full and fast compression backups in the Backup Template when it is deployed as a maintenance plan. If a backup template is created for a full backup with the option "Do not delete if Archive bit is set" selected, and the backup template is deployed as a job, the option is passed to the job's script to run the xp_slsSmartCleanup procedure. When the backup template is deployed as a maintenance plan, the option is omitted because the “Remove files older than” option (not the SmartCleanup option) for full backup is run in the maintenance plan.
Backup Templates are saved in the central repository (if one is used) and available for editing and deployment on the Backup Templates tab in the Backup Manager pane (CTRL+1). If the central repository is not configured, LiteSpeed will save each template as file.
In the Backup Templates tab, you can create, edit, clone, import, export and deploy templates, view the template contents, deployment details and modification history.
NOTES:
NOTES:
To deploy a LiteSpeed Backup Template
Complete the wizard. Review the following for additional information:
Select Instances |
Use the Show selected instances only option to see server instances and databases where the selected template was deployed. NOTE: You can select individual databases only if the backup template is saved with the Custom Database Selection at Deployment option. |
Backup Options |
Enter backup destinations for individual instances or for several instances at a time or use the default backup destination you specified in the template. Use the TLog Backup Location column to enter the Transaction Log backup folder for the given instance. Use the Exclude Databases column to exclude individual databases from the backup. You can change the scheduled time manually or you can right-click a cell in the Scheduled Time column and select one of the following options:
NOTE: You can only change the time for the instance. Each Backup Template remembers if you override these settings to make future redeployments easier. For example, if you specify a different scheduled time for an instance, it will retain the job/plan start time for the next deployments and will not change if you edit this setting in the template. |
Notifications |
If you enabled notification in the template, review the Notification page and complete the fields as necessary. You can use the notification profiles only if they are already configured within a SQL Server instance. TIP: Variables defined in the maintenance plan can be used to format the Subject Line. There is also help information inside the task that lists the available Subject Line variables. NOTE: The SQL Server Agent must be configured to send email using Database Mail. Review the following for additional information: |
For each of the selected instances, the Deployment wizard will create either a SQL Agent job or a maintenance plan. Maintenance Plans names and subplans jobs names are prefixed with the template name. SQL Agent job names have the following format: LiteSpeed Backup Template <template_name> (version n).
Tip: To remove a deployed template, run the Deployment wizard, select the Remove deployed template option on the Select Template page and complete the wizard.
The Backup Manager wizard guides you through the process of backing up a single database or multiple databases. For single database backups you can perform file, filegroup, or transaction log backups, and you can also mirror, stripe, compress, encrypt, and add attachments to the backup file. For multiple database backups you can create both the native SQL Server and LiteSpeed backups, mirror, compress and encrypt backups, run all backups immediately or schedule via a SQL Server job.
Tip: Database backups created with LiteSpeed Version 8.x cannot be restored using older versions of LiteSpeed.
NOTES:
Running individual database backups or multi-database backups both use the same Backup wizard. When backing up multiple databases at the same time For more information, see Multi-Database Backup.
Alternately, you can create a maintenance plan. For more information, see About Creating Maintenance Plans.
To back up multiple databases
In case you select to schedule the backups to run at the specified times, the wizard creates a job with 'Multiple Databases' appended to the job name.
To back up databases using the Backup wizard
Select the Backup Manager pane (CTRL+1).
In the Navigation pane, select a database to backup and click the Backup button. Alternately you can right-click a database and select Backup from the menu.
On the Select Backup Type page, review the following:
Recovery model |
Indicates the recovery model for selected database. Possible values: Full, Simple, Bulk-Logged, Mixed (in Multi-Databases Wizard if databases with different recovery models are selected for backup). |
Backup type |
Select one of the following backup types:
Scenario: Select the Fast Compression backup type. |
Backup component |
Select one of the following backup components: NOTE: This field is only available for databases with a full or bulk-logged recovery model and for a regular (not fast compression) backup.
|
Use LiteSpeed |
Select to create a LiteSpeed backup. If you clear this checkbox, LiteSpeed creates a native backup script. NOTE: The LiteSpeed version number is displayed. |
TIP: You can specify custom backup names and descriptions using variables. For more information, see LiteSpeed Variables.
On the Backup Destination page, review the following:
Caution: The Cloud only runs backup to new files. Appending to an existing file is not supported by the Cloud. Existing backups can only be overwritten. The option "Overwrite existing object" is available in the Backup Wizard and MP (Back Up Database task). The option is turned off by default. |
Scenario: Select Disk and enter the existing or new location for Fast Compression backups:
Backup to |
Select one of the following options:
|
Add |
Click to add multiple backup destinations. The Select Backup Destination window is displayed. From here you can enter file names or backup devices. |
Remove |
Click to remove backup destinations. |
Contents |
Click to view the contents of the backup destination including general properties of file content and backup sets properties. |
Overwrite |
Select one of the following options: TIP: This option is only available for regular backups (and not fast compression backups).
|
Add Mirror |
Click to copy the entire backup file to multiple locations. TIP: This option is only available with the Overwrite existing media option above. You can create multiple mirrors by clicking this button more than once.
|
NOTES:
If you selected Cloud,
If you selected TSM Backup or TSM Archive,
Client node |
Enter the node name for the TSM session. This field is not case-sensitive. |
Client owner password |
Enter the access password for the specified node. |
Configuration file |
Select the configuration file. (Usually, dsm.opt.) NOTE: This file contains session options such as the TSM server's TCP address. If you select the Use PASSWORDACCESS GENERATE from TSM configuration file checkbox and your options file is configured to support this option, you do not need to specify the client node and client owner password. |
Management class |
Select the management class (policy) to associate with the backup object being created. LiteSpeed will use the default management class, if this option is not selected. |
TSM Filespaces (Fast Compression backups) |
Click TSM Filespaces and select the existing or enter new file space name(s). This step is optional, if you do not specify the file space name, Fast Compression will automatically create one. NOTE: Fast Compression handles the naming of files automatically. For more information, see Backup Files and Folders. |
TSM Object (Regular backups) |
Click Select TSM Object. Enter the filespace and the high-level and low-level names and click Query TSM to pick the object name from the list of available TSM objects. From the Available TSM Objects list, double-click the objects you would like to select. NOTE: If you leave the High level and Low level fields blank, LiteSpeed will query all TSM server levels. Querying all levels may take longer to complete. For a new object, you can manually enter the full three-part name. |
Check for existing objects with same name (Regular backups) |
Select this option to check for objects with the same name. LiteSpeed aborts the backup if it finds one. |
If you selected the Fast Compression backup type, review the following:
Fast Compression Type |
Select whether you prefer to create a unique file for each backup or you prefer to manage a single file for each backup set (a backup set is composed of one full database backup plus all associated differential backups):
The Self-Contained Backup Sets option automatically verifies the Full backup exists. The Separate Backup Files option performs the same validation by default.
|
On the Options page, review the following:
Options |
You can set the following thresholds to define when to issue a full backup:
Fast Compression measures the amount of data change by either querying SQL Server or by comparing the size of the last differential to the last full backup. The default option is to query actual data pages. It provides the most accurate way to determine the amount of data change. If the query fails for any reason, Fast Compression will automatically run a size comparison to the last Differential backup. For example, set this parameter to 20%, and should the database change by 20% or more, Fast Compression will automatically run a Full backup. The larger the threshold, the larger the differential backups can grow before Fast Compression triggers the next Full backup. Regardless of how much underlying database data has changed, when exceeding the maximum interval (in days) between full backups, Fast Compression will force a full backup. NOTES:
Select the Extension for backup files checkbox to enter or change the backup file name extension. The default is set to bkp. NOTE: You can select the backup file extension for Fast Compression and make the new default, bak, for new items. For an existing item that does not have an extension defined, bkp is displayed when the item is edited (maintenance plans and templates). Select the Enable backup escalation checkbox to maintain high recoverability. This option is enabled by default. This option causes LiteSpeed to issue a full backup, if one of the following problems is discovered in the current backup set:
NOTE: If a problem is detected and a full backup is created through escalation, an error will be returned. Select the Optimize Object Level Recovery speed checkbox to enable speed. The default is enabled. Select the Perform checksum before writing to media checkbox to verify backup data checksum before writing the backup data to the media. Select the Continue on error checkbox to continue running the backup even if an invalid checksum is encountered. |
Optimize the Object Level Recovery speed |
Select to create an index of objects in the backup file. This option is only available for LiteSpeed backups. The default is enabled. NOTE: Before you can recover objects or execute a SELECT statement, you must read the backup file to create an index of restorable objects. The index is an .lsm file. During the backup process the .lsm file is created in the temp directory and attached to the backup file after the backup is completed. If you select this option, LiteSpeed uses the index in the backup file to read the backup file, which makes the object level recovery process much faster. |
Create Double Click Restore executable |
Select to create an executable backup file or a Double Click Restore Loader that allows you to restore a backup on a server instance that does not have LiteSpeed installed. For more information, see Double Click Restore Executables. NOTE: A Double Click Restore can only be created for a disk file. |
Perform checksum before writing to media |
Select to verify checksums when a backup is created. Additionally, you can control the response to an error. If you select the Continue on error option, the backup is executed despite encountering an invalid backup checksum. |
Continue on error |
Select this option to continue running the backup even if an invalid checksum is encountered. |
Select directories to mirror the backup to (Overwrite must be selected) |
Select Add to attach a directory for a mirror backup. The backup is mirrored to the selected directory. |
Select files/folders to attach to the backup set |
Select Add to attach files or folders to the backup set. |
NOTE: Some options are only available with certain backup types.
On the Compression page, review the following:
Adaptive Compression |
LiteSpeed automatically selects the optimal compression based on throughput and CPU usage and optimize backups either for size or for speed (default). NOTE: Adaptive Compression is only available with LiteSpeed 6.5 or later; Enterprise license. | |
Compression level |
Select 0 for no compression or 1-8 (default 2) to compress the file. For more information, see Compression Methods. NOTE: Higher compression levels result in smaller backup files, but they also take longer to complete.
| |
Encrypt backup |
Select this checkbox to encrypt the backup. Then, select the encryption level and enter the encryption password. |
Review the following additional information about the advanced options:
Compression 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. |
Max transfer size |
Enter the maximum backup file size in bytes. . The possible values are multiples of 65536 bytes (64 KB) ranging up to 4,194,304 bytes (4 MB). The default is 1048576. |
Buffer count |
Enter the number of SQL Server buffers available for a LiteSpeed operation. The default is set by SQL Server. |
CPU throttle |
Enter the maximum percentage of CPU that LiteSpeed can use for the process. The default is 100. |
Processor affinity |
Click |
Processor priority |
Select the priority of the backup over other transactions or processes running on the same server. The default is Normal. |
Comment |
User comment written into the backup header. Is blank by default. |
Logging level |
Select a logging level to define what events to log for the console. You can find the log events in the Application Event Log. |
Network resilience |
If LiteSpeed fails to write disk backups or reads from disk, it waits and retries the operation. You can enable and disable and control the number of times to retry and the amount of time to wait before retrying.
|
TIPS:
|
NOTE: LiteSpeed defaults typically result in the best performance. You should only modify advanced options after careful planning and testing. For more information, see Configure LiteSpeed Defaults.
On the Attached Files page, select Attach files and directories to store selected files with the backup.
If you selected Fast Compression the backup schedule has options to configure backups to run as a SQL Agent job at a scheduled time. The options are: daily at, custom, and do not run full backup on specified days of the week. If you select custom, you can add schedule name, schedule type, occurs, weekly, daily frequency, duration, and description.
On the Notification page, if you selected the Fast Compression backup type, you can configure the Fast Compression job to send notifications when any type of failure occurs. The failure might be due to a failed backup, a validation issue, like a missing Full or Differential backup, an LSN verification issue, or a failed Verify operation. Select one of the following:
TIP: Variables defined in the maintenance plan can be used to format the Subject Line. There is also help information inside the task that lists the available Subject Line variables.
NOTE: The SQL Server Agent must be configured to send email using Database Mail. Review the following for additional information:
TIP: "Cleanup" means SmartCleanup. For more information, refer to SmartCleanup.
Make sure the backup files in the backup set have integrity. This provides an added level of insurance the backup files can be restored. Verification failures appear in the LiteSpeed UI Console and, optionally, as job failure notifications. A verification failure after a differential backup will trigger the backup escalation process, if selected.
The Verification options include:
The Cleanup options include:
Note: Clean up transaction log options are available if you set up a transaction log within the wizard (or template). |
Scenario: Specify when full/differential backups are eligible for cleanup, according to your company's retention policy. For more information, see SmartCleanup.
Complete the wizard.
NOTE: If you selected to run the backup in the background, you can view the progress in the Background Tasks pane (View | Background Tasks). If you scheduled the backup, you can view and edit it from the LiteSpeed Jobs tab for the database.
© 2022 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy