Good advice out there, but…Lots of outdated information. Do DB servers really need 2x RAM for PF?
Recovery and backup for beginners
Recovery and Backups for BeginnersMike HillwigBoston, MA5/31/2013 |Footer Goes Here1 |
Mike Hillwig SQL Server DBA Working with SQL Server since SQL 7 Senior DBA at hosting division of a financial softwarecompany owned by a large financial institution Resume includes Acme Packet Oracle, Shawmut Designand Construction, Equitable Resources Certified in ITIL Foundations
Mike Hillwig Owned by Two Pugs Avid Cook Lover of Blue Cheese And Bacon Geek at Heart
Obligatory Social Networking Slide mikehillwig.com sqlserverpedia.com twitter.com/mikehillwig anysocialnetworkingsite/mikehillwig
Housekeeping Slides and scripts at sqlsaturday.com Blog post at mikehillwig.com/go/recovery Don’t let me talk too fast
Beware of the Blogs There is some amazingadvice out there. But… Anybody can put badadvice on the internet Trust people you know Assume I’m an idiot I don’t trust people whosay “ALWAYS” or“NEVER” Test everything in yourown test environmentfirst.
Lets talk strategy Who has a backup strategy? Do you have a recovery strategy?
If you have a backup strategy and not arecovery strategy, youre doing it wrong!
Lets talk business SLA: Service Level Agreements (with yourcustomers) OLA: Operational Level Agreements (with yourorganization) RTO: how quickly you need to be recovered(usually in hours) after a failure RPO: how much data loss (usually in minutes) isacceptable
The lower your RTO and RPO, the greaterthe cost.
Myth Busting Backup and Recovery are NOT the samething as high availability. High Availability (Clustering, Always On) area completely different topic. Log Shipping is another topic for another day.
Recovery Models Simple Recovery – Allows us to restore a fullbackup. Full Recovery Allows us to restore a full backup Then roll forward transaction log backups Stop at a specific point in time BULK LOGGED – Similar to Full Recovery,but we’re not talking about it today.
What is the right Recovery Model to Use? It depends on your RPO It also depends on your data and businessprocesses
Why RPO Matters Does your RPO allow you to lose the databetween full backups? Probably not. But it can happen.
Why Your Data and Business Matters How many of your databases have data thatdoesn’t change between full backups? Can your data be recreated from import filesor re-running a process to run data updates?
Matching Recovery Models to Backups SIMPLE: Regular FULL backups FULL: Regular FULL backups AND frequent transaction log backups How frequent? It depends on your RPO.
A Word on Log Shipping Another form of Backup and Recovery Three Step Process Backup Transaction Logs Copies Transaction Log Backups to Target Restores Transaction Log Backups on Target Very helpful for Disaster Recovery