Making the most of SQL Backup Pro
If time is tight, this guide is an ideal way for you to find out how you can make the most of SQL Backup Pro. It helps you to quickly identify key areas where you can make improvements to the performance of SQL Backup Pro in your environment.
The main areas highlighted in this guide have been selected because they are easy to experiment with and control. They also have the potential to improve your workflow and even save you time where you might not have anticipated.
This guide contains links to the online Support Center for SQL Backup Pro, where you can find a wealth of material and guidance to help you troubleshoot any problems you may encounter. If you have questions, please don't hesitate to contact us. A dedicated team is always happy to hear from you.
- CHECKSUM and RESTORE VERIFYONLY
- Scheduled restores and DBCC CHECKDB
- Fine-tuning compression and thread settings
- Using the Compression Analyzer
- Optimizing network resilience settings
- Using T-SQL scripts
- Using the SQL Backup Pro Command Line or an extended stored procedure
- Splitting the backup into multiple files
- Automatic information retrieval and intelligent restore
- Restoring a transaction log to a point in time
- Checking for orphaned users
- Killing existing connections
- Setting different time zones and locations
- Editing scheduled jobs from the timeline
- Viewing activity properties from the timeline
Verifying your backups
SQL Backup Pro makes it easy to set up backup verification to regularly test that your backups can be used.
CHECKSUM and RESTORE VERIFYONLY
Whether you’re taking a single backup or scheduling a recurring backup job, SQL Backup Pro gives you the option to run CHECKSUM and RESTORE VERIFYONLY on your backup files. These backup checks provide a first line of defense and will identify some problems that can make a backup unusable. The results of the backup checks are displayed in the Activity History; to view more details of any errors or warnings raised, double-click the row to open the backup properties
Scheduled restores and DBCC CHECKDB
The most reliable test of your backups is to restore and run a database integrity check (DBCC CHECKDB). This will confirm whether the backups can be used by checking the logical and physical consistency of all the objects in the restored database. With SQL Backup Pro you can schedule restores and database integrity checks for the most recent backup of a database.
Use the Schedule Backup Jobs wizard to set up a backup job and, on step 6, select the option to create a reminder to verify the backups. When you complete the wizard, a reminder is added to the Reminders tab with details of the backup job schedule. Click Schedule a restore now to launch the Schedule Restore Jobs wizard, pre-populated with details from the backup job. This enables SQL Backup to identify the most recent backups each time the restore job runs.
By default, the wizard is set to restore the backups to a new database for the purpose of verification, and run a database integrity check after the restore. You can also opt to drop the database after the restore and integrity check, to free up the space on your server. Set the restore schedule according to how regularly you want to verify your backups. Each time the job runs, SQL Backup will restore the most recent backups and verify them.
The results of the restore and database integrity check are displayed in the Activity History, so you can quickly view the status of your backups. You can also set up automatic email notification to let you know if an error or warning arises.
See Backup verification for more information.
Improving the performance of backups and restores
Fine-tuning compression and thread settings
There are a couple of small tweaks in SQL Backup Pro that will allow you to improve the performance of your backups and restores considerably. The key features that help you achieve a better performance are the different compression levels, multiple threads and splitting your backups into multiple files.
Let's look at choosing the right compression level for your database first. SQL Backup Pro offers you four high-performance compression levels. The fourth level compresses your backup the most, and, in general, the smaller the backup, the quicker it is to restore. The flip side of the coin is that highly compressed backups take longer to create. For detailed information about the individual compression levels that SQL Backup Pro offers, including which algorithms are used and an estimate of the differences in CPU cycle usage between each compression level, see Compression levels in the SQL Backup Pro Support Center.
Using the Compression Analyzer
If you are unsure which compression level to use, SQL Backup Pro's Compression Analyzer helps you determine which compression level is best suited for your database.
The Compression Analyzer works by sampling the database data for analysis. It produces an estimate of the compression ratio that would be achieved with each compression level if a full backup of that database was made.
In this example, level 4 would produce the highest compression. Level 1 results in the fastest compression, but also creates larger backup files. Use the Compression Analyzer to experiment with different compression levels to find the right balance between faster or smaller backups.
Optimizing network resilience settings
backups you can also optimize the network resilience
settings for your backup, to render your backups more
robust and reliable.
Network outages are a common problem when transferring data. They can interrupt backup operations and cause job failure. Network resilience in SQL Backup Pro is designed to minimize the disruption caused by network outages. If a backup job is interrupted by a transient network outage during the writing or copying of a backup across a network, network resilience means that SQL Backup Pro will resume the operation once the network connection is re-established. If the network connection during a backup operation is lost, SQL Backup Pro is set by default to retry connecting to the network after 30 seconds to complete the operation. If the network connection is still down, SQL Backup Pro will, by default, reattempt the operation up to 10 times. The default settings are appropriate for temporary network outages, but you can adjust the settings to suit the needs of your environment. For example, we recommend you experiment with different settings if your backup operation must complete within a short timeframe. In this case, you could try reducing the time SQL Backup Pro waits to re-attempt the operation and also the number of retry attempts. If the network connection remains down after the time SQL Backup Pro is set to wait and the number of retries have been exhausted, SQL Server will mark the operation as having failed. If you want to give a backup operation more time to complete successfully, you can increase one or both settings. To disable retries completely, specify "Retry up to 0 times".
Network resilience settings can also be optimized for log shipping operations. You can specify how long SQL Backup Pro should wait and how many times it should retry transferring an individual transaction log if a network outage occurs during a log shipping operation. For log shipping, an extra level of resilience is provided in a way that makes the process self-healing. If a prolonged network outage occurs while transaction log backup files are being copied, and the standard number of retries is exceeded, SQL Backup Pro keeps a record of the files that failed to copy, and defers the log file transfer for a set period (two minutes by default). The transfer becomes a pending task in the Log Copy Queue tab, and SQL Backup Pro will keep attempting to complete the transfer at regular intervals for a maximum of 24 hours before marking it as failed. Once the network outage is resolved, SQL Backup Pro will transfer all the affected transaction log files, starting with the earliest. Log shipping is then brought right up-to-date, without the need for your intervention.
Using T-SQL scripts
You can download a T-SQL script that enables you to compare performance when creating backups with both SQL Backup Pro and native SQL Server. The script collates the necessary statistics and returns them in the form of a report at the end of the test.
The script performs up to 15 backups, depending on the SQL Server version being used. It first performs native backups for a benchmark, followed by eight SQL Backup tasks (from the non-compressed level 0, up to the highest compression level, 4). It can optionally perform up to three user-defined tasks (for example, specially-configured backup tasks). Read through the script step by step prior to running the tests, so you can assess what will happen and make any necessary tweaks. Please also take care not to run the tests in a production environment!
Running SQL Backup Pro from the Command Line or extended stored procedure
You can run SQL Backup Pro from the Command Line or extended stored procedure to optimize your backups step-by-step with different compression levels and different numbers of threads (up to a maximum of 32).
The backup process can be separated into three distinct stages, and each stage gives an opportunity for you to optimize performance through compression and the use of multiple threads:
- Stage 1: SQL Server backup engine reads the data and log files. This incurs disk Input/Output (I/O) reads.
- Stage 2: SQL Backup Pro compresses, and optionally encrypts, the data. This uses CPU cycles.
- Stage 3: SQL Backup Pro writes the resulting compressed data files to disk. This incurs disk I/O writes.
You can run a series of tests using the Command Line or extended stored procedure to perfect each of these stages in turn. For more information about how to run these tests, see Optimizing backup speed in the SQL Backup Pro Support Center.
Splitting the backup into multiple files
SQL Backup Pro enables you to split a backup into multiple files. This can speed up the backup process if backing up to a single file does not fully use the I/O capacity of your disks. Note that all backup files must be available when you restore the backup.
You can split the backup into multiple files, either when using SQL Backup Pro's backup wizards, or by using the relevant Command Line parameters or extended stored procedure. For more information, see Scheduling backups: file settings and The BACKUP command in the SQL Backup Pro Support Center.
Optimizing your workflow with restores to save time
Even a few minutes saved here and there each day can easily add up each week. Over a year, that's potential for a lot of time saved for you to put to other uses. There are several features in SQL Backup Pro that remove the complexity from different areas of backup-related tasks, saving you both time and effort. Take a look at the different areas highlighted below to see which are most useful for you.
Automatic information retrieval and intelligent restore
need to be decrypted
When you are restoring a backup, SQL Backup Pro lists only those files that are relevant for the restore operation. When working with differential or transaction log backups, SQL Backup Pro's intelligent restore finds all files needed for a successful restore.
For example, if you select a transaction log backup, SQL Backup Pro retrieves all transaction log backups since the corresponding full backup, and the full backup itself.
SQL Backup will also check that the backup file can be restored. If there are any problems, a red cross will appear next to the file details.
Restoring transaction logs to a point in time
an exact point in time, using a slider.
If you are restoring transaction logs, you can quickly and easily specify the exact point in time to restore to.
SQL Backup Pro automatically populates a list with appropriate transaction logs. When you select a transaction log, a slider in step 3 of the Restore wizard shows the exact time period covered. Simply move the slider to select the exact time to which you want to restore the transactions.
Checking for orphaned users
In step three of the Restore wizard, you can request a check for orphaned users: If you are restoring a database onto a different SQL Server instance, it is possible that some of the restored database user accounts will not have an associated server login on that instance. These database user accounts are known as orphaned users and will be unable to access the database unless you create their associated logins. If you select Check for orphaned users and list in log file in step three of the Restore wizard, SQL Backup Pro checks for orphaned users automatically. If any orphaned users are found, a warning is included in the SQL Backup Pro log file along with a list of the orphaned users, so you know as soon as possible which logins you need to create. This avoids a tedious manual search and makes for a smoother restore process.
Killing existing connections
If you decide to overwrite an existing database when you restore a backup, and there are existing connections to the destination database, the restore process will fail. This usually means you have to end the connections manually before reattempting the job. SQL Backup Pro prevents this problem by giving you the option to kill existing connections automatically on step 2 of the restore wizards. This means the restore process can be completed successfully without further intervention and a lengthy manual process can be avoided. If you would prefer to kill specific connections one at a time, you can uncheck this option before continuing.
Making the most of the interactive timeline
The interactive timeline can be a quick and simple way for you to view past, current and future backup and restore activities at a glance.
These tips assume you are already familiar with the color-coding in the timeline, the use of differently sized color blocks to indicate backup, restore and transaction log activities, and ways to select different points on the timeline. The following tips highlight ways for you to make the most of the timeline's interactivity.
Setting different time zones and locations
SQL Backup sets up an initial location for you to register your SQL Server instances, using the time set on the client computer. The time zone is displayed in the tab at the top of the timeline.
If you have SQL Server instances in different locations or time zones, you can register those SQL Servers under different tabs by simply clicking a blank tab at the top of the timeline and selecting the appropriate settings.
Editing scheduled jobs from the timeline
Clicking on an activity scheduled for the future (to the right of the orange line marking the current server time) selects it in the Jobs tab. A number of activities on the timeline can correspond to a single job in the Jobs tab if you have scheduled a series of activities as a single job. Double-click an activity to edit the job using the wizard.
It is easy to spot a clash in scheduled activities, as these are indicated by a red block or a group of red blocks on the timeline (depending on the number of clashing activities). To see a list of clashing activities, simply right-click a red block indicating a future clash. You can resolve the clash by selecting the activity and double-clicking to edit the job in the wizard. This is much quicker than scrolling through a list of jobs to find the relevant activity or activities. For more information about editing a scheduled job, see The Jobs tab in the SQL Backup Pro Support Center.
Viewing activity properties from the timeline
Clicking on an activity in the timeline that is shown as completed (to the left of the orange line marking the current server time) selects the corresponding entry in the Activity History, so you can view further details about the activity.
Double-clicking on a past activity in the timeline displays the properties (file name, file size, and the compressed size after backup) in addition to any associated errors or warnings.
Try a 14-day fully functional free trial of SQL Backup Pro.
Find out more: