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.
Veeam supports image level application aware backup of SQL databases.
SQL Server Standalone Deployment.
SQL Always-on Availability Groups.
SQL Server Failover Cluster Instances
Note: Please read the whitepaper on benefits of using SQL Always-on Availability Groups for Virtual Environment
SQL Server Standalone deployment.
SQL Always-on Availability Groups.
SQL server Failover Cluster Instances.
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.
The following section will provide the best practices to verify SQL Server for the smooth and fast backup:
Open a command prompt as Administrator.
Type “vssadmin list providers” and press enter.
Verify all the writers are in health state.
Type “vssadmin list writers” and press enter
Check and confirm writers are “Stable with no errors”.
As backup is I/O intensive operations check the SQL server performance status before start taking the backup: To verify the SQL Server Health:
Open Performance Monitor.
Add below objects verify the performance:
a. Under the Memory object, add the counter: Available MBb. 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)
Check Microsoft KB to validate the health status of 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.
Please check the Veeam User’s Guide sections to get the more information about SQL backup configuration
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.
You can also use KB2110 to excluded specify database from application aware processing.
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
As best practices it's highly recommended to periodically shrink the SQL log file, Please follow [Microsoft KB](https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2012/ms190757(v=sql.110)) for more information.
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 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.
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.
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.
Restore SQL Database to Staging SQL Server(Stand alone SQL Node)
Open SQL Server Management Studio. Connect both staging and target SQL server(intend to do the restore)
Right-click on the database name, then select "Tasks" > "Export data..." from the object explorer.
The SQL Server Import/Export wizard opens; click on "Next".
Provide authentication and select the staging server; click "Next"
Specify the target SQL Server; click on "Next".
Select the tables to restore.
Complete the restore.