Configure backup plans for Microsoft SQL Server instances and databases

Backup and DR Service lets you back up Microsoft SQL Server:

  • Instances

  • Primary database of an Always On availability group

  • Databases in VMs

  • System databases

  • User databases

  • Databases and support files in a consistency group

  • Individual members of a consistency group

Before you begin

Before you protect Microsoft SQL Server databases:

Best practices for protecting Microsoft SQL Server databases

For Microsoft SQL Server databases that use the full recovery model, takeadvantage of the backup/recovery appliance's ability to back up both the databaseand its logs with a single policy. When both the database and its logs arebacked up, the appliance can recover the database to a point in time by rollingits logs forward using the appliance's user interface. Backing up both thedatabase and its logs is enabled using the policy template's advanced settings.

Back up databases in an instance versus a consistency group

When a database is quiesced to create a backup, a snapshot of its disks iscreated and then released. For consistency groups and database instances,members are quiesced and released together for a consistent point-in-time ofdata.

When backing up aSQL Instance, as databases are added to the instance,they are automatically included in the Backup and DR backup operation.Backing up databases in a SQL instance lends itself to environments wheredatabases are regularly added and removed. Databases mounted to a SQL instanceas virtual applications are not protected with the other members of theinstance. Virtually mounted databases must be protected separately.

Membership to aconsistency group is done manually. Backing up databasesin a consistency group lends itself to environments where databases are notoften added or removed.

Database versus VM management

Microsoft SQL Servers are protected differently whether they are protected as anapplication (database, instance, or availability group) or as part of an entireVM.

Protected as an Application, Not ESPProtected as Part of a VM
Backup/recovery appliances protects only the database files.Entire VMware VMsare backed up using VMware APIs. If you are managing SQL databases thatare part of an entire protected VM, see[Protect and recover Compute Engine instances](/backup-disaster-recovery/docs/quickstarts/gce-instances-backup-recovery).
Backup and DR agentcoordinates the VSS snapshot and performs log truncation.The VMware API coordinatesthe VSS snapshot. The Backup and DR agent must be installed on the VMfor log truncation.
The Backup and DR agentuses change block tracking on named files—very efficient for largedatabase files.The VMware API provides change block tracking.
Transaction logs arebacked up when a backup job runs if you selectTruncate Log After BackupinDetails & Settings (see[Configure advanced settings for policy settings overrides](: #SetOverrides)Transaction logs are not backed up.
Client can roll forward with logs.Roll forward not supported during restore.

Use the following instructions to apply a backup plan to protect Microsoft SQL server database.

  1. From the management console, go toApp Manager >Applications.TheApplications page opens.

  2. Select the Microsoft SQL server database, instance, AG, orconsistency group that you want to back up and in the lower right cornerof the page selectManage Backup Plan.

  3. From theManage Backup Plan window, choose aTemplate andProfilefrom the drop-down lists:

    • Template. An existing backup template that includes policies to definethe snapshot and replication of the application data.

    • Profile. An existing resource profile that defines the resourcesused to store the data of the application as snapshot andreplicated images.

  4. From theManage Backup Plan Template window make the following changesprior to applying a backup plan:

    • Application Settings. Settings specific to Microsoft SQL such asapplication type, hostname, host IP address, path, operating system,backup/recovery appliance, and appliance IP address.

    • Policy Overrides. Override specific policy settings previouslyconfigured in the selected backup template. Policy overrides can be usefulor required in certain circumstances. You can only override policysettings if the policy's template has been configured to allowpolicy settings overrides.

  5. To select databases, underDatabase Inclusion Rule, clickEdit.TheManage Membership dialog opens.

    • From theManage Membership dialog, select the databases to back upby assigning an inclusion rule (All,System Databases,User Databases), and then select whether the rule shouldInclude Selected orExclude Selected.

    • ClickSave and theManage Membership dialog closes.

  6. ClickApply to apply the backup template and resource profile andthe success message box appears.

    The first time the selected database is discovered, an on-demand job runs assoon as possible to protect the data. Afterward, new data is backed up when thescheduled job runs according to the hours of operations defined in the backuptemplate. For example, if at 10:00 (UTC) you assign a template that has hours ofoperation from 02:00 to 05:00 (UTC), then the first job won't start until theappliance has an available job slot after 02:00 (UTC).

    If you back up a workload to a backup/recovery appliance that would exceed itsrecommended storage capacity or snapshot limit, you will see a notificationwith a recommendation to back up the data to a different backup/recovery appliance.

    Caution: Exceeding the capacity of a backup/recovery appliance can lead tofailed jobs and unprotected data and failed restore operations.

Database log protection in a Backup plan policy

When creating a snapshot policy for a database you can also back up its logfiles. The frequency at which database logs are backed up is defined separatelyfrom that of the database. For example, a database can be backed up every dayand its logs backed up every hour. The frequency of database log backup is setin minutes, and the frequency at which logs are backed up must not exceed thefrequency at which its associated database is backed up. For example, if adatabase is backed up every 24 hours, the log file back up frequency must beless than every 24 hours.

Frequency and retention are defined in theDetails & Settings of thedatabase snapshot policy. Log back up is done without regard to when itsassociated database is backed up.

You enable theLog Protection through theEnable Database Log Backup advanced settings in a backup plan snapshotpolicy. Frequency and retention are defined in theDetails & Settings for abackup plan policy.

The space required to accommodate a database's logs is automatically managed bymanagement console. Management console evaluates typical log sizes and theirretention period and adds space as needed. To manage the storage requirementsfor a database's logs, Snapshot policies provide the following advancedsettings:

Configure advanced settings for policy settings overrides

ClickPolicy Overrides in theManage Backup Plan window to show thePolicy Settings Override dialog. From here you can override specific policysettings associated with the selected backup template. After you are done,clickSave Changes.

To reset a policy override setting to its default state, click the checkbox tothe left of the selection; clickSelect options that will revert back to default to reset all policyoverride settings back to their default state.

Note: You can override policy settings in theApplication Manager onlyif the policy templateAllow Overrides on Policy Settingsparameter has been set toYes.

The following list has descriptions for the policy settings overrides valid forSQL Server instances, availability groups (AG), databases, and consistencygroups.

The Backup and DR Microsoft SQL Server DBA guide

This page is one in a series of pages specific to protecting and recoveringMicrosoft SQL Server databases with Backup and DR.You can find additional information at:

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.