This Site Is Depreciated
  • This is the depreciated Version of Veeam Backup & Replication Best Practices
  • Contacting Veeam Software
  • DNS Resolution
  • Veeam Backup Server
    • Deployment Method
    • Backup Server Placement
    • Sizing and System Requirements
    • Veeam Backup & Replication Database
    • Protecting Veeam Backup & Replication Configuration
  • Veeam Enterprise Manager
    • vCloud Director Self Service Portal
  • Search Server and Indexing
  • Proxy Servers - Introduction
    • Proxy - VMware vSphere
      • Transport Modes
        • Direct Storage Access
        • Virtual Appliance Mode
        • Network Mode
        • Backup from Storage Snapshots
          • NetApp Data ONTAP integration
          • Nimble Storage integration
        • Selecting a Transport Mode
      • Sizing a Backup Proxy
    • Proxy - Microsoft Hyper-V
    • Proxy - Nutanix AHV
  • Primary and secondary Storage BPs
    • HPE 3PAR VMs disks considerations
    • DellEMC Data Domain advanced scalability
  • Backup Repository
    • Repository Types
      • SMB
      • Deduplication Appliances
      • Integration specifics
      • Windows Server Deduplication
      • Object Storage
    • Repository Planning
      • Sizing
      • Per VM Backup Files
      • Scale-out Backup Repository
        • Capacity Tier
    • Repository HA
  • WAN Acceleration
    • Analyzing Wan Acceleration Workload
    • Comparing WAN Acceleration Modes
    • Sizing For WAN Acceleration
    • Sizing Targets for WAN Accereration Relationship
    • Deployments For WAN Acceleration
    • Is WAN Acceleration Right For me
  • Tape Support
    • Tape Deployments
    • Tape Media Information
    • Tape Config Requirements
    • Tape Parallel Processing
    • Tape Virtual Full
    • Tape Writing to Tape
    • Tape Restores
  • Veeam Explorers
  • Interaction with VMware vSphere
  • Interaction with Microsoft Hyper-V
  • Job Configuration
    • Backup Methods
    • Encryption
    • Deduplication and Compression
    • Backup Job
    • Backup Copy Job
    • Replication Job
    • Application-Aware Image Processing
  • Data Verification Using Virtual Labs
  • Overview of Applications Support
    • Active Directory
    • Microsoft Exchange
    • Microsoft SQL Server
    • Microsoft SharePoint Server
    • Oracle Database
    • MySQL
    • IBM Notes/Domino
    • SAP HANA
  • POC Guide
    • Assessment
    • Accelerated Evaluation
    • Enhanced Evaluation
      • Workshop Example
      • Preparation
      • Automation
  • Infrastructure Hardening
    • Segmentation using Zones
    • Hardening Backup Repository - Linux
    • Hardening Backup Repository - Windows
  • Backup & Replication Anatomy
    • Backup
    • VM Restore
    • Instant VM Recovery
    • Windows File-Level Restore
    • Replication
  • Networking Diagrams
    • Backup Server
    • Proxy Server
    • Repository Server
    • Storage Integration
    • Data Validation
  • Application-aware Image Processing
  • Enterprise Manager
  • Sizing Summary
Powered by GitBook
On this page
  • Virtual Machine Image Level Application Aware Backup:
  • Veeam Agent Based Backup for SQL Servers:
  • Supported Configuration:
  • Unsupported Configuration:
  • Preparation
  • Check the Status VSS Writers / Providers:
  • Check the performance of SQL Server:
  • Job Configuration
  • Virtual Machine Image Level Backup:
  • Standalone SQL Server:
  • SQL Always-on Availability Group:
  • Transactions Logs Backup:
  • Veeam Agent Based Backup:
  • Restore
  • SQL Failover Cluster Database Restore: (Applicable to agent based cluster backup only)
  • SQL Database Restore:
  • SQL Table Level Restore:

Was this helpful?

  1. Overview of Applications Support

Microsoft SQL Server

PreviousMicrosoft ExchangeNextMicrosoft SharePoint Server

Last updated 4 years ago

Was this helpful?

Veeam supports following options to backup SQL Server databases:

  • Virtual Machine Image Level Application Aware Backup.

  • Veeam Agent Based Backup for Physical and Cluster SQL servers.

Virtual Machine Image Level Application Aware Backup:

Veeam supports image level application aware backup of SQL databases.

Supported Configuration:

  • SQL Server Standalone Deployment.

  • SQL Always-on Availability Groups.

Unsupported Configuration:

  • SQL Server Failover Cluster Instances

Note: Please read the whitepaper on benefits of using

Veeam Agent Based Backup for SQL Servers:

Supported Configuration:

  • SQL Server Standalone deployment.

  • SQL Always-on Availability Groups.

  • SQL server Failover Cluster Instances.

Unsupported Configuration:

  • Backup of CSV (Cluster Shared Volumes) is not supported. Cluster disks used as CSV are automatically excluded from backup.

  • AlwaysOn Availability Groups based on multiple Failover Cluster Instances are not supported.

  • AlwaysOn Clusterless Availability Groups are not supported.

Preparation

The following section will provide the best practices to verify SQL Server for the smooth and fast backup:

Check the Status VSS Writers / Providers:

  1. Open a command prompt as Administrator.

  2. Type “vssadmin list providers” and press enter.

  3. Verify all the writers are in health state.

  4. Type “vssadmin list writers” and press enter

  5. Check and confirm writers are “Stable with no errors”.

Check the performance of SQL Server:

As backup is I/O intensive operations check the SQL server performance status before start taking the backup: To verify the SQL Server Health:

  1. Open Performance Monitor.

  2. Add below objects verify the performance:

       a.    Under the Memory object, add the counter: Available MB
       b. Under the Processor object, add the counter: %Processor Time (Instance: Total)
       c. Under the Physical Disk object, add the counters: Avg. Disk Sec/Read and Avg. Disk Sec/Write (All Instances)
       d.    Under the Paging File object, add the counter: %Usage (Instance: Total)

Job Configuration

Virtual Machine Image Level Backup:

Standalone SQL Server:

No additional configuration is required to backup the standalone SQL server, you can configure the backup with application aware processing to take the backup of SQL server with the databases.

SQL Always-on Availability Group:

When backing up AlwaysOn availability group make sure all cluster nodes are processed by the same backup job for transaction logs processing and restores to work properly. Consider increasing cluster timeouts in case failover occurs during the backup, similar to Exchange DAG as per KB1744.

Transactions Logs Backup:

Please be aware that transactions logs are processed periodically and stored in temporary folder inside of the VM before shipping to repository/shipping server. Default location of the temporary folder is %allusersprofile%\Veeam\Backup. The default location is in most cases the system partition to avoid the situation to run out of space in the system partition, it’s the best practices to change the temporary folder location to the windows disk volume where enough space is available for staging the transactions logs.

To change temporary folder use SqlTempLogPath (STRING) registry value as described at How It Works: SQL Server and Transaction Log Backup: • Path: HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and Replication • Key: SqlTempLogPath • Type: REG_SZ • Default value: undefined

Veeam Agent Based Backup:

Veeam Agent is requiring to backup following configuration of SQL Servers: 1. SQL Virtual Machine with RDM (Raw Device Mapping) 2. SQL Failover Cluster Instances. 3. SQL Physical Server

To backup the SQL Failover cluster, the backup need to be configured and manage by Veeam Backup Server.

Restore

Restore is integrated part of SQL Server protection, Veeam provides following options to restore SQL Server: 1. VM or Physical Server Restore.

  • Instant VM or Server Restore.

  • BMR Restore for Physical.

  • Full VM Restore.

    1. SQL Application Item Level Restore.

Veeam uses specially designed Veeam Explorer for SQL to perform application item level restore, to optimize the restore of SQL database install Veeam Management console on SQL server locally to perform the restores.

SQL Failover Cluster Database Restore: (Applicable to agent based cluster backup only)

SQL Database Restore:

Please follow the below steps to restore SQL database: 1. File Level Restore to local Veeam Server. 2. Copy the mdf and ldf file to target SQL Server. 3. Attach the Database to target SQL Server.

SQL Table Level Restore:

  1. Restore SQL Database to Staging SQL Server(Stand alone SQL Node)

  2. Open SQL Server Management Studio. Connect both staging and target SQL server(intend to do the restore)

  3. Right-click on the database name, then select "Tasks" > "Export data..." from the object explorer.

  4. The SQL Server Import/Export wizard opens; click on "Next".

  5. Provide authentication and select the staging server; click "Next"

  6. Specify the target SQL Server; click on "Next".

  7. Select the tables to restore.

  8. Complete the restore.

Check to validate the health status of SQL Server.

Please check the Veeam User’s Guide sections to get the more information about

You can also use to excluded specify database from application aware processing.

As best practices it's highly recommended to periodically shrink the SQL log file, Please follow [Microsoft KB]()) for more information.

SQL Always-on Availability Groups for Virtual Environment
Microsoft KB
SQL backup configuration
KB2110
https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2012/ms190757(v=sql.110