Database backup (2000)


Job details

Name: Database backup (2000)
Platform: Sqlserver
Category: Availability
Description: This procedure analyzed the backup statistics from msdb.dbo.backupset table (excluding system databases: master, model and msdb).
Long description:
Version: 1.2
Default schedule: 10 6 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version = ‘2000′ & hasengine=‘YES’ & alwayson_active=‘NO’ & engine_edition = ‘Microsoft SQL Server’]

Parameters

Name Default value Description
ignore databases dbwatch The list of databases to be ignored from being checked (separated by comma).
warning threshold 48 A warning is triggered if the amount of hours, since the database have been backed up,

Job Summary

SELECT   msdb.dbo.backupset.database_name "Database name", MAX(msdb.dbo.backupset.backup_finish_date) AS "Last backup", DATEDIFF(hh, MAX(msdb.dbo.backupset.backup_finish_date), GETDATE()) AS "Backup Age" FROM msdb.dbo.backupset WHERE msdb.dbo.backupset.type = 'D' and msdb.dbo.backupset.database_name not in ('master','model','msdb') GROUP BY msdb.dbo.backupset.database_name HAVING (MAX(msdb.dbo.backupset.backup_finish_date) < DATEADD(hh, -@parameter_wt, GETDATE()))

Implementation Details

This monitoring job involves several SQL procedures to:

Dependency Configuration

The job has dependencies, specifically:

Reporting

The configuration sets up several reports:

These report configurations aim to present the data in a visually accessible format, incorporating tables and lists that outline database names, backup timings, and the elapsed time since the last backup, among other details.

Maintenance and Upgrades

Upgrades from previous versions (1.0 to 1.2) focus on alterations in the SQL procedure handling backup monitoring, reflecting changes in logic that might involve parameter enhancements or procedural optimizations for efficiency.

Conclusion

The dbWatch Control Center Job for monitoring SQL Server 2000 database backups is designed to ensure reliable, up-to-date backup data across managed databases, helping to safeguard against data loss and maintain operational continuity efficiently through regular monitoring, reporting, and alert management.