I'm running Server 2022 with an instance of SQL Express installed as the default SQL instance (not named SQLEXPRESS as is usually is). I have a complete SQL Maintenance Solution implemented that is doing full and log backups on a set schedule. Veeam should only back up the flat file backups; it should not touch SQL at all.
I found this post with a recommendation for a registry entry to exclude SQL:
veeam-agent-for-windows-f33/veeam-endpo ... ml#p230632
HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Endpoint Backup
After adding this in ExcludeSqlDatabasesFromBackup:
MSSQLSERVER:;
I now see this in the Veeam job log:
Code: Select all
[06.11.2023 02:00:48] <01> Info Sending Microsoft SQL database names to exclude from freeze:
[06.11.2023 02:00:48] <01> Info Instance: 'MSSQLSERVER' DB: ';'.
[06.11.2023 02:00:48] <01> Info VSSControl: Trying to exclude databases from freeze
[06.11.2023 02:00:48] Info <3308> ExcludeSqlDatabase
[06.11.2023 02:00:48] Info <3308> Adding component to excluding list, writerId: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}, instanceId: {00000000-0000-0000-0000-000000000000}, componentName: ;, logicalPath: MSSQLSERVER.
[06.11.2023 02:00:48] Info <3308> ExcludeSqlDatabase. Ok.
[06.11.2023 02:00:48] <01> Info List of Microsoft SQL database names to exclude from freeze was successfully sent.
However a few minutes later, Veeam tries to back up the SQL logs anyway, e.g.
Code: Select all
[06.11.2023 02:03:32] Info <3308> Database found: MyDB. Recovery model: 1. Is readonly: false. State: 0.
[06.11.2023 02:03:32] Warning <3308> Cannot truncate SQL logs for database: MyDB. Code = 0x80040e14
[06.11.2023 02:03:32] Warning <3308> Code meaning = IDispatch error #3092
[06.11.2023 02:03:32] Warning <3308> Source = Microsoft OLE DB Driver for SQL Server
[06.11.2023 02:03:32] Warning <3308> Description = The server principal "NT AUTHORITY\SYSTEM" is not able to access the database "MyDB" under the current security context.
[06.11.2023 02:03:32] Warning <3308> No OLE DB Error Information found: hr = 0x80004005
How do I tell Veeam to leave SQL alone?
Thanks and regards,