Backup to Basics Tom Fox belvdr@gmail.com.

Slides:



Advertisements
Similar presentations
By: Jose Chinchilla July 31, Jose Chinchilla MCITP: SQL Server 2008, Database Administrator MCTS: SQL Server 2005/2008, Business Intelligence DBA.
Advertisements

Microsoft SQL Server Architecture
Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
Module 7 Restoring SQL Server 2008 R2 Databases. Module Overview Understanding the Restore Process Restoring Databases Working with Point-in-time Recovery.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
©2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 5 Slide 1 IT390 Business Database Administration Unit 5 :
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Module 5 Understanding SQL Server 2008 R2 Recovery Models.
Database Configuration and Maintenance Database Configuration and Maintenance Exam / 30.
Presented by Joseph Galvan & Stacy Kemp BACKUPS.  Using database backups, a database administrator (DBA’s) can restore from the last backup or to a specific.
Modification is sent by application to SQL Server Modification is sent by application to SQL Server 1 Data pages are located in, or.
Optimizing SQL Server 2012 for SharePoint 2013 SharePoint Saturday/Friday, Honolulu March 27, 2015.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
Business Continuity and Disaster Recovery Chapter 8 Part 2 Pages 914 to 945.
Multiplicity – Progress Data Replication Methodologies.
Chapter 11: Designing a Data Recovery Solution for a Database MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in It is a High Availability as well as Disaster recovery.
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
Module 6 Backup of SQL Server 2008 R2 Databases. Module Overview Backing up Databases and Transaction Logs Managing Database Backups Working with Backup.
MS SQL by: Bryan Bankhead CIS 407. General Concepts  Backing up and Restoring databases and transaction logs is a way that SQL Server provides protection.
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
Pedro Azevedo Lopes Premier Field Engineer Microsoft Corporation.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
Learningcomputer.com SQL Server 2008 – Backup and Restore Database.
Backup and Recovery - II - Checkpoint - Transaction log – active portion - Database Recovery.
Data Disaster Recovery Planning Greg Fibiger 1/7/2016.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Digging Out From Corruption Eddie Wuerch, MCM - Principal, Database Performance - Salesforce Marketing Cloud Data protection and loss recovery with SQL.
SQL SERVER MAINTENANCE PLANS Kat
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Dealing with Database Corruption DBA 911. Who am I? 2 David M Maxwell twitter.com/dmmaxwell or twitter.com/upsearchsqltwitter.com/dmmaxwelltwitter.com/upsearchsql.
Disaster Recovery Scenarios René Romo González DBA at Intel Second Meetup DBA100.
Backups for Azure SQL Databases and SQL Server instances running on Azure Virtual Machines Session on backup to Azure feature (manual and managed) in SQL.
Database recovery contd…
SQL Backups for Beginners by Mark Gordon
You Inherited a Database Now What?
Automated Restore Script Output for Ola Hallengren’s Maintenance Solution 1) Start SQL Services on Local 2) Connect to Azure AlwaysOn 3) Delete all maintenance.
Transaction Log Fundamentals
Tips for SQL Server Performance and Resiliency
Curacao SQL Saturday June 11, 2016
Refresh a 1TB+ database in under 10 seconds…
Database Corruption Advanced Recovery Techniques|
Common SQL Server Mistakes and How to Avoid Them
Building Effective Backups
Installation and database instance essentials
Summit Nashville /14/2018 9:26 PM
Disaster Recovery Services
Tips for SQL Server Performance and Resiliency
SQL Backups for Beginners by Mark Gordon
Dynamics AX Performance
Database Corruption Advanced Recovery Techniques
Migrating your SQL Server Instance
Back Up and Restore? Piece of Cake!
Backup and Restore your SQL Server Database
Peter Shore SQL Saturday Cleveland 2016
Database Corruption Advanced Recovery Techniques
Transaction Log Fundamentals
Database Corruption Advanced Recovery Techniques
Workshop.
You Inherited a Database Now What?
Performing Database Recovery
Transaction Log Performance Tuning
Advanced Recovery Techniques
Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions
Backup & Recovery.
The DBA Quit and now you’re it:
Presentation transcript:

Backup to Basics Tom Fox belvdr@gmail.com

Just who do you think you are? SQL Server MCITP DBA 2008 Oracle 8i through 12c, Linux, Unix, Windows, SAN administration, Networking, Information Security Loved coffee since coffee wasn’t cool Gamer since the Atari 2600 / Commodore 64 Extra class amateur radio operator, KQ8W

I'm not a DBA, but wait... Whose data is it? Who determines criticality? If lost or damaged, who is impacted? Managing data is a team responsibility

I don’t need backups because… I have a RAID set Our disk and/or database is replicated I have high availability Configuration and hardware are no replacements for backups

To backup or not to backup OLTP vs Warehousing User vs System databases Not tempdb

Starting at the basics FULL DIFF TLOG Link to last TLOG backup Begins the chain DIFF Links to last full backup TLOG Link to last TLOG backup

EVER! The Backup Chain Determines how to restore Resembles a road map Must have the entire chain to restore Don’t break the chain EVER!

Full Backup Operation Database checkpoint occurs LSN is recorded Data is read from the data pages After data is read, transaction log is read TLOG backups cannot occur during a full backup Example: 1st Sunday of Month – Full Backup contains LSN 1 to 100

Differential Backup Operation Same as full except… Only contains data that has changed since last full backup Cumulative, not incremental Example: 2nd Sunday of Month Differential – LSN 100 to 200 3rd Sunday of Month Differential – LSN 100 to 300

TLOG Backup Operation Enables point-in-time recovery Contains all records from LSN of last backup Incremental, not cumulative Example TLOG Backup 1am – 2am contains LSN 100 - 106 TLOG Backup 2am – 3am contains LSN 106 - 146 TLOG Backup 3am – 4am contains LSN 146 - 379

The Backup Chain Courtesy of: http://technet.microsoft.com/en-us/magazine/2009.07.sqlbackup.aspx

Recovery Models Simple Full Bulk-Logged 12

Choosing a Recovery Model Recovery Point Objective (RPO) How much data can I lose? Recovery Time Objective (RTO) How quickly can I recover to my RPO?

Quiz Choose any backup sequences that are valid 100MB DB, few transactions per hour, RPO 1 hour, RTO 15 minutes 100MB DB, many transactions per hour, RPO 1 hour, RTO 15 minutes 1TB DB, warehouse loaded nightly, RPO 24 hours, RTO 4 hours

Your backups are not valid if you only... RESTORE VERIFYONLY RESTORE VERIFYONLY … WITH CHECKSUM Only valid test is to restore the database and run DBCC CHECKDB

Get that warm and fuzzy feeling Enable page verification of CHECKSUM Run DBCC CHECKDB Run BACKUP...WITH CHECKSUM Run RESTORE VERIFYONLY...WITH CHECKSUM Perform test restores frequently

Implementation Maintenance Plans Ola Hallengren (ola.hallengren.com) Custom jobs Trace flag 3023 (all versions) SQL 2014 backup checksum default Configure SQL Agent appropriately

Q & A Tom Fox belvdr@gmail.com