Tag: Database Backups and Recovery

  • DBA Scripts: Get Database Backup History

    Part of the DBA-Tools Project. Most backup checks answer one question: what’s the latest backup. That’s the right question most of the time, but it hides everything that happened before it. A backup job that ran reliably for a year and then quietly changed behaviour three weeks ago still passes a “latest backup is recent”…

  • DBA Scripts: Get Backup Restore Progress

    Part of the DBA-Tools Project. A large restore has been running for twenty minutes. Is it about to finish, or is it barely a quarter done? SSMS won’t tell you unless you started it interactively and left that session open, and a restore kicked off from a script, a job, or someone else’s session gives…

  • DBA Scripts: Get Backup Encryption Status

    Part of the DBA-Tools Project. TDE (Transparent Data Encryption) and backup encryption are two different things that get confused constantly. TDE encrypts the data and log files at rest. It does not automatically encrypt your backups in a way msdb tracks as an encrypted backup set, and it definitely doesn’t help you if a .bak…

  • DBA Scripts: Get Backup Chain Integrity

    Part of the DBA-Tools Project. You can have a full backup from last night and still not be able to restore to 2pm today. That’s the gap this script closes. Backup coverage checks tell you when your last backups ran. They don’t tell you whether the log backups between them actually form an unbroken chain.…

  • DBA Scripts: Get Backup Restore Duration Estimate

    Part of the DBA-Tools Project. Planning a maintenance window is a guessing game if you don’t know how long your own backups actually take. “It usually takes about an hour” is a guess. A throughput figure calculated from your own backup history, applied to the size of what you’re about to back up or restore,…