https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2IyMTA0IiwiaGFzaCI6IjkzOWU2YTk5LWVmOGItNDJhNy04M2IzLTYxNGQwZTFmZjA2NiJ9
1-800-691-1991 | 9am - 8pm ET
EN

How to exclude MS SQL Databases from SQL Log backup

Challenge

It is necessary to exclude specific databases on one or multiple Microsoft SQL Server instances from Veeam SQL Log backup processing. 
 

Solution

In Veeam Backup & Replication 8.x and 9.x, registry keys need to be created, specifying which combination of Instance/DB to exclude 
 
All keys need to be created inside "HKEY_LOCAL_MACHINE\SOFTWARE\VeeaM\Veeam Backup and Replication", on the server Veeam Backup and Replication is installed on.

SqlBackupInstanceDatabaseDelimiter
         Type: REG_SZ
         value: ":"

SqlBackupInstanceDatabasePairsDelimiter
         Type: REG_SZ
         value: ";"

SqlBackupDatabasesToSkip
         Type: REG_SZ
         value: "mysqlserver_instance:mydb;mysqlserver_instance:mydb2"


To exclude SQL databases from SQL logs backups, list databases and instances as following, with multiple combinations possible:  
sql_instance_name:db_name - skip everything containing specified instance and db name 
sql_instance_name: - skip all databases on this instance 
:db_name - skip all databases with this name, on all instances 
 
KB ID:
2104
Product:
Veeam Backup & Replication
Version:
Any
Published:
2016-03-01
Last Modified:
2020-08-13
Please rate how helpful this article was to you:
5 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.
Your report was sent to the responsible team. Our representative will contact you by email you provided.
We're working on it please try again later