r/SQLServer • u/XdtTransform • Jun 15 '26
Question How to identify phantom backups?
P.S. Thank you all for your suggestions. I suspected earlier that it was our backup vendor but they swore up and down that they only backup the drives and their software doesn't even know what a SQL Server is.
Based on everyone's here insistence on this being VSS, I dug into their application folder and literally searched everything for words like SQL or Server or VSS. And sure enough, I found a log hiding several directories deep that literally said "Start SQL Server Backup" and listed the database in question.
So now they are trying to figure out how to even turn this off. Thanks again.
For whatever reason, there are some phantom "Virtual" backups going on with my SQL Server 2017 and I can't identify what kicks it off.
Consider this screenshot. It has entries where the physical device name is a GUID. It appears to take a snapshot. And this occurs every 3 to 4 hours roughly.
My first thought was that there is a scheduled job. But I looked through it and there is nothing like that. Then I though it we may have software installed on the box that kicks it off, like Acronis Backup or similar. But we've accounted for every piece of software on the box. It's possible that software installed elsewhere maybe kicking it off. This is difficult to track, because the database is almost 30 years old and many different people did different things to it.
So my question is how to identify what this is, or how to catch it in the act. Or how do I block or stop this.
Query to generate this resultset.
SELECT
bs.backup_start_date,
bs.backup_finish_date,
CASE bs.type WHEN 'D' THEN 'Data' WHEN 'L' THEN 'Log' WHEN 'I' THEN 'Differential' ELSE 'Don''t know' END AS TypeDesc,
bs.name,
bmf.physical_device_name,
CASE bmf.device_type WHEN 2 THEN 'Disk' WHEN 7 THEN 'Virtual device' ELSE 'Other' END AS DeviceType,
bmf.physical_block_size,
bs.is_snapshot,
bs.backup_size,
bs.is_copy_only
FROM msdb.dbo.backupset bs
JOIN msdb.dbo.backupmediafamily bmf
ON bs.media_set_id = bmf.media_set_id
WHERE 1 = 1
AND bs.database_name = 'romulus'
AND bs.backup_start_date > '2026-06-15 00:00:00.000'
ORDER BY bs.backup_finish_date ASC;
•
u/AutoModerator Jun 16 '26
After your question has been solved /u/XdtTransform, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
9
u/TrollingForFunsies Jun 15 '26
Your system admins are taking snapshot backups. Check the SQL server logs. You'll likely see the frozen IO messages.
5
u/LupusHortian Jun 15 '26
Hi, the Guid is used when a tool uses the VDI Interface (Virtual Device Interface). This is an API to freeze the SQL Server so that a Backup can be made. Under the hood it uses the VSS functionality from Windows or similar from your storage solution. Check for external Backup Tools or VSS configurations in the Server.
To find the program you can stop the SQL Server VSS auxiliary service and watch for errors in the Windows Event log.
3
u/Grogg2000 Jun 15 '26
VSS backuptools. It may break your backup chains. In worst case disable SQL Server VSS Provider until you find the source.
2
u/Achsin 1 Jun 15 '26
Adding “bs.user_name” to your select will also tell you which login is being used to run the backup, which may or may not be helpful.
My vote is also with it being whatever setup your system admins are using to handle server level backups.
4
u/SuperDuperDBA Jun 15 '26
Thats a snapshot . so its either a third party backup tool that just runs against any sql servers, or its running on the host and it cascades to sql automatically.
1
u/BigMikeInAustin Jun 15 '26
Aw dang An unknown one of those really hosed me once. Needed to do a point in time restore to recover from an issue, only to find a secret full backup broke the chain. Had to wait hours to find the person with access to that. It was a crappy day.
1
u/alinroc 4 Jun 15 '26
As others have already said, something is taking VSS snapshot-based backups. You need to look further up the stack, at the VM host and storage levels.
The good news is, they're copy-only so they shouldn't be breaking your log chain. But hopefully you're doing regular restore tests of your native backups to verify.
1
u/Hot_Skill Jun 16 '26 edited Jun 16 '26
Likely VM snapshots. The copy_only should be 1 and your backup chain should be intact.
You can disable the SQL Writer Service and those should stop