Backup - Microsoft SQL Server

Topics | How To | Related Topics


Overview

Supported Backup Types

SQL Backup Jobs

Backup Considerations

Advanced Backup Options


Overview

Plan your backup jobs for this agent by reviewing the following information:


Supported Backup Types

The Microsoft SQL Server iDataAgent supports the following backup types:


SQL Backup Jobs

This agent has the following unique functionality. The Microsoft SQL Server iDataAgent backs up very specific sets of data depending upon what type of operation you choose. Review the following information to understand exactly what will be backed up when you perform a backup job at the indicated level.

Subclient Backups

Through the creation of subclients, you have a flexible way to manage how databases, data files, and file groups get backed up by the Microsoft SQL Server iDataAgent. Subclient backups support the following:

The job that is performed when you perform a full, transaction log, or differential backup for a subclient depends on the type of subclient you are backing up:

Default subclient

When a full backup job is performed for the default subclient, the system performs a discover on the instance and executes a full backup of:

When a transaction log or differential backup job is performed for the default subclient, the system performs a discover of the instance, and executes:

User-defined subclients

When a full backup job is performed for a user-defined subclient, the system executes a full backup of:

When a transaction log or differential backup job is performed for a user-defined subclient:

Instance Backups

Through the creation of instances, you have a flexible way to manage how databases, data files, and file groups get backed up by the Microsoft SQL Server iDataAgent. Instance backups support the following:

When a full backup job is performed for an instance, the following actions take place:

When a transaction log or differential backup job is performed for an instance, the following actions take place:

When a backup is performed at the instance level, File/File Group subclients are not backed up.

See Instances - Microsoft SQL Server for more information.

File and File Group Backups

Through the creation of additional subclients, the SQL Server iDataAgent allows individual files or file groups to be backed up. For especially large databases, this functionality can be critically important.

Whereas a Full database backup captures all files of a given database, file and file group backups allow you to back up selected portions of a database individually. As with database backups, the system provides the option of performing full, differential, and transaction log backups of file and file groups. Note that file and file group backups only support full and differential, and when running a transaction log backup for a File/File Group subclient, the database log is backed up.

A file and a file group backup are technically the same. If the subclient content is defined as a file group, the backup command issued will be to back up the group. All files defined in the group are backed up. If the subclient content is defined as one or more files, the backup command issued will be to back up only the files listed in the contents. SQL Server permits only one file or file group backup to run at a time.

If you choose to use file and file group backups, keep in mind the requirement that you must also run transaction log backups in order to restore files and file groups. You have the option of running a transaction log backup automatically upon successful completion of a Full or Differential backup. See Start Log Backup after Successful Backup for more information.

Jobs Restricted During Backups

While backups can proceed while a database is online and being accessed, there are a few jobs that SQL Server restricts during a backup. If one of these jobs is initiated while a backup is already in progress, the job terminates. If a backup is initiated while one of these jobs is in progress, the backup terminates. These jobs are:

Volume Shadow Service (VSS) Enabled Backups

When using SQL on Windows Server 2003 or later, you can enable VSS for backup jobs, see VSS for SQL Server iDataAgents for more information.

Transaction Log Backups

A transaction log backup is a backup of the transaction log of the database. This backup captures the transaction log which contains a record of all transactions whether the transaction was committed or not. Transaction log backups are consistent to the start time of the backup.

The use of transaction log backups make point in time recovery possible. You can restore to any point in time within the transaction log. If you use only full and differential backups, you will be able to restore to the time of the backup, but not to a point in time between backups.

A transaction log backup is similar to a traditional incremental backup you might perform on a file system because the transaction log backup contains only the new changes since the full or another transaction log backup.

Each time a transaction log is backed up it is truncated to the exact time of the backup. No checkpoint is issued at this time, therefore dirty pages are not written to disk before or after a transaction log backup. If there are dirty pages, any completed transactions will need to be rolled forward if a transaction log restore is performed. Any transactions that are not completed at the time a transaction log backup is performed are rolled back during a restore involving a transaction log backup.

Backing up the Transaction Log of a Damaged Database (Do Not Truncate Log)

In the scenario of a database failure where it is unacceptable to lose any data, you will want to restore to the point of failure. To do so means you will need to capture all transaction log events that occurred after the last backup job was run.

Tail-log Backup (database is left in restoring state)

This advanced backup option is only available if the Transaction Log option was selected in the Backup Option dialog box. Specifies to back up the tail of the log and to leave the database in the RESTORING state.

Specify Number of Log Backups Before Running Full

By configuring the nLogThreshHoldValue registry key, a minor event will be generated to remind users to run a full backup after the specified number of transaction log backups have run. By default, 24 log backups are run and then a full backup is taken. Specify a number with the registry key if you want to run a different number of log backups other than the default. The event can be viewed with the Event Viewer. This is useful since log backups are typically scheduled, but scheduling full backups may be inadvertently missed. Full backups also reduce the chance of data loss if log backups become corrupted.

Run Log Backups Only Without a Full

You can configure the SQL Server iDataAgent to run log backups only without having to run full backups in the software. To do this:

  1. Disable backup consistency checking with the nCvdLogChainConsistencyCheck registry key.
  2. Disable the backup rules in the subclient.
  3. Run a full backup using software other than Calypso.
  4. Commence running log backups using Calypso.

Run Log and Full Backups Simultaneously

Full and log backup operations can run simultaneously for the same subclient. However, a full backup needs to exist prior to running them together. After a full has been run, subsequent parallel backups will work since the risk of breaking the chain will be lessened. Note that running full and differential backups at the same time is not supported.

When full and log backup operations are run simultaneously, the conversion rules will not be honored. See Backup Conversion Rules for more information. 

Backup Considerations

Before performing any backup procedures for this agent, review the following information:

Back to Top