How to View SQL Server Backup History
Monitoring database backups is essential for maintaining data integrity and recovery readiness. In this post, we’ll look at how to retrieve backup history in SQL Server using T-SQL queries. These scripts help you analyze when your databases were last backed up, the type of backups performed, and the devices used.
Viewing Recent Backup History
The following script displays detailed information about all database backups from the past 30 days for a specified database:
This query pulls data from the msdb system database and provides insight into the backup type, size, device used, and more.
Finding the Most Recent Backup per Database
To identify the latest full backup for each database on the server, use the query below. This script returns the most recent full backup details for all databases.
These queries are helpful for DBAs who want to quickly validate the backup status of their databases or audit recent backup operations.
For more details on the backup-related dynamic management views, refer to the Microsoft Documentation on backupset.