SlideShare una empresa de Scribd logo
1 de 39
Descargar para leer sin conexión
Are the Native SQL Server Backup
Utilities Holding You Back?
Jason Hall
Manager, Database Systems Consulting
2 Confidential Dell Software
Agenda
• Introductions
– Speaker
– Topic
• Native Backup/Restore Limitations and Considerations
– Full vs. Diff Backups
– Backup Job Management
– Backup Reporting
– Backup Reliability
– Always On Availability Groups
– Restoring Only What You Need
– Backup Security
• Q&A Taken Throughout via GoToMeeting
3 Confidential Dell Software
Who Are These Guys?
• Jason Hall: Manager, Database Systems Consulting
• David Gugick: Senior Product Manager, Backup and Recovery Solutions
• Started w/ LiteSpeed in 2004
• Helped customers architect backup and recovery solutions
• Frequent speakers at SSUG’s and Conferences
• Always available
– @jasonfhall or Jason_Hall2@Dell.com
– @davidgugick or David_Gugick@Dell.com
4 Confidential Dell Software
What Are We Going to Talk About?
• Microsoft has always provided a very capable B&R solution
• Comes with limitations
• Several facts that must be considered when implementing
• Explore what those limitations and considerations are while offering
suggestions on how to work around
• Lots of demo’s!!!
5 Confidential Dell Software
Native
Backup
Limitations
6 Confidential Dell Software
Full vs.
Differential
Backups
7 Confidential Dell Software
Full vs. Differential Backups
• Deduplication?
• Seems like a no brainer right?
• Differential backup challenges
– Reliance on full backup
– Effectiveness is dependent on amount of data change
– Backup retention gets much more complex
8 Confidential Dell Software
Reliance on Full Backup
• A differential backup without its associated full is useless
• Scenarios that can affect the full backup
– File is mistakenly deleted
– File is moved to an unknown or inaccessible location
– File moved to tape and shipped offsite
– A new full backup (w/out COPY_ONLY) is taken
– File has become corrupted or unrecoverable
9 Confidential Dell Software
Amount of Data Change
• Differential backups only make sense when a small % of data has changed
• Situations where data can change:
– Unusual application activity
– Unscheduled data loads/purges
– Database Maintenance (Index Rebuilds)
• Lots of change means large Differential backups
– You don’t save time, space, and…
– It can double (or worse) your recovery time
10 Confidential Dell Software
File Retention
• Ensure that you are not deleting Full’s that are required for Diff/Log restores
• Full on Sunday, Diff’s Mon – Sat, Don’t delete older than 3 days
• If 2nd Full Backup fails, make sure previous full is not deleted.
– F
– D
– D
– D
– F (failed)
– D
– D (still good, just points back to first full)
11 Confidential Dell Software
Tips & Tricks
• If you are going to incorporate Differential backups…
• For out of cycle Full backups, use COPY_ONLY
– Or ensure that new full is a part of retention policy
– BACKUP DATABASE AdventureWorks TO DISK=…. WITH COPY_ONLY
• Perform data loads/purges before scheduled Full
– Or perform out of cycle full after complete
• For large index maintenance operations, perform before scheduled Full
– Or perform out of cycle full after complete
• If verifying or testing restores, test going back to full
• Make sure retention policies are set to not delete full backups until new
successful full
12 Confidential Dell Software
Backup Job
Management
13 Confidential Dell Software
Backup Job Management
• Many ways to run scheduled database backups
– SQL Server Agent Jobs
– SQL Server Maintenance Plans
– Custom Scripted TSQL Jobs
– Windows Scheduled Tasks
– Typically only used for SQL Express
– Centralized 3rd Party Scheduler
– Enterprise Backup System
– IBM Tivoli TSM
– Symantec NetBackup
– Dell NetVault Backup
14 Confidential Dell Software
SQL Server Agent Jobs
• Need to be managed on a per server basis
– Can be very challenging in large environments
• SQL Server Maintenance Plans cannot be easily transferred between servers
– SSIS Packages w/ hard coded connection strings
– Manually create them on each server
• TSQL Scripts can provide portability
– Might need to run differently per version of SQL Server
– Need a solution to copy/deploy
– May be complex depending on amount of custom logic required
15 Confidential Dell Software
Example Script
DECLARE db_cursor CURSOR FOR
SELECT name
FROM master.dbo.sysdatabases
WHERE name NOT IN ('master','model','msdb','tempdb') -- exclude these databases
OPEN db_cursor
FETCH NEXT FROM db_cursor INTO @name
WHILE @@FETCH_STATUS = 0
BEGIN
SET @fileName = @path + @name + '_' + @fileDate + '.BAK'
SET @backupstr = 'BACKUP DATABASE ' +
@name +
' TO DISK = ' + char(39) + @fileName + char(39)
EXECUTE (@backupstr)
FETCH NEXT FROM db_cursor INTO @name
END
CLOSE db_cursor
DEALLOCATE db_cursor
16 Confidential Dell Software
Ways to Deploy
• SSMS has Group Execute
– Add the script as a job to one SQL Server
– Export Job as a TSQL Script
– Group Execute against all, or a sub group of servers
17 Confidential Global Marketing
Demo
18 Confidential Dell Software
Backup Job Management Considerations
• Different backup directories for different servers
• Spreading or staggering backup schedules
• Notification
• Different database types
19 Confidential Dell Software
Backup
Reporting
20 Confidential Dell Software
Backup Reporting
• SQL Server stores backup statistics in a set of local MSDB tables.
• SSMS has a very inflexible report available
– Easier and more powerful to query yourself
• Backup failures are logged locally to:
– SQL Agent Job Step Logs
– SQL Server Error Logs
– Windows Event Logs
21 Confidential Dell Software
Backup Reporting Challenges
• Backup statistics are only stored locally on the instance being backed up
• If you have 100 servers and you want to report on all of your backups, have
to run 100 reports
• SSMS Group Execute can help here
• Or you can build a reporting architecture to aggregate this data
22 Confidential Dell Software
Example Backup Report Query
• Query msdb.dbo.backup… tables adding filtering and sorting
23 Confidential Dell Software
Demo
24 Confidential Dell Software
Backup
Reliability
25 Confidential Dell Software
Backup Reliability
• Native SQL Server backups and restores can be very “fragile”
• Any IO related issue whether network or local will cause a failure
– Only choices are:
– Do we take a backup that conflicts w/ production workload?
– Or, do we go the day without a backup and keep our fingers crossed?
26 Confidential Dell Software
Backup Reliability Tips
• When backing up over the network:
– Make sure the network is reliable
– Stagger backups that share the same network to avoid saturation
– Look into possibly routing backups over a dedicated network infrastructure
• If you cannot backup over the network:
– Make sure you have plenty of local disk allocated
– Backup to a disk other than where your data/log files are
– Copy the backup across the network
– Consider using a more robust option than COPY
– ROBOCOPY
– Provides fault tolerance and multi threading
27 Confidential Dell Software
AlwaysOn
Availability
Groups
28 Confidential Dell Software
AlwaysOn Availability Groups
• Against Secondary Replica’s
– Only Full (COPY_ONLY) and Log backups are supported
– No differential backups or standard full’s are allowed.
• Backup preference should be set to enforce policy or avoid license violation
• Backup preference can be enforced through a MP
– Not through BACKUP DATABASE
– Not through Backup Wizard
• Check sys.fn_hadr_backup_is_preferred_replica
29 Confidential Dell Software
Demo
30 Confidential Dell Software
Restoring
Only What
You Need
31 Confidential Dell Software
All Or Nothing Restore
• Restore types mirror backup types
– Full
– Diff (Full + Diff)
– Log (Full + Log(s))
– Filegroup (Full + Log)
• What if you only need a subset of data (i.e. Table, Stored Proc, Record, etc...)?
32 Confidential Dell Software
Recovery Tips
• Restore to separate server and grab what you need
– Requires time and space
• Proactive Solutions
– AlwaysOn?
– No
– Log Shipping Load Delay
– Database Snapshots
33 Confidential Dell Software
Demo
34 Confidential Dell Software
Backup
Security
35 Confidential Dell Software
Backup Security
• Native SQL Server backups are created in plaintext
• Can be read by any hexeditor (even notepad)
• Used to be able to password protect backups (no longer available in 2012)
• Compression can make it harder to read, but still possible
• TDE Encrypts whole database (including backup)
– Has many implications
• Consider if and how backup data should be secured/encrypted
36 Confidential Dell Software
Demo
37 Confidential Dell Software
How Can Third Party Solutions Help
• Backup Templates and Enterprise Reporting
• Object Level Recovery
• Up to AES 256 Encryption
38 Confidential Dell Software
Summary
• Hopefully we’ve given a lot of food for thought!!
• How can we (Dell Software) help?
– NetVault LiteSpeed for SQL Server
– http://www.quest.com/webcast/litespeed-for-sql-server-
demonstration819145.aspx
39 Confidential Dell Software
Q&A
Thank You!!!

Más contenido relacionado

La actualidad más candente

BP103 - Got Problems? Let's Do a Health Check
BP103 - Got Problems? Let's Do a Health CheckBP103 - Got Problems? Let's Do a Health Check
BP103 - Got Problems? Let's Do a Health Check
Luis Guirigay
 
Exadata Patching Demystified
Exadata Patching DemystifiedExadata Patching Demystified
Exadata Patching Demystified
Enkitec
 
Phanindra_Resume_ Commvault
Phanindra_Resume_ CommvaultPhanindra_Resume_ Commvault
Phanindra_Resume_ Commvault
Phanindra Sv
 
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized EnvironmentsBest Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
Jignesh Shah
 

La actualidad más candente (20)

BP103 - Got Problems? Let's Do a Health Check
BP103 - Got Problems? Let's Do a Health CheckBP103 - Got Problems? Let's Do a Health Check
BP103 - Got Problems? Let's Do a Health Check
 
Hadoop Summit 2012 | HDFS High Availability
Hadoop Summit 2012 | HDFS High AvailabilityHadoop Summit 2012 | HDFS High Availability
Hadoop Summit 2012 | HDFS High Availability
 
Windows 7 Feature Overview It Academic Day 2009
Windows 7 Feature Overview   It Academic Day 2009Windows 7 Feature Overview   It Academic Day 2009
Windows 7 Feature Overview It Academic Day 2009
 
TECHNICAL BRIEF▶NetBackup Appliance AutoSupport for NetBackup 5330
TECHNICAL BRIEF▶NetBackup Appliance AutoSupport for NetBackup 5330TECHNICAL BRIEF▶NetBackup Appliance AutoSupport for NetBackup 5330
TECHNICAL BRIEF▶NetBackup Appliance AutoSupport for NetBackup 5330
 
Exadata Patching Demystified
Exadata Patching DemystifiedExadata Patching Demystified
Exadata Patching Demystified
 
Phanindra_Resume_ Commvault
Phanindra_Resume_ CommvaultPhanindra_Resume_ Commvault
Phanindra_Resume_ Commvault
 
KoprowskiT_SQLSat219_Kiev_2AM-aDisasterJustbegan
KoprowskiT_SQLSat219_Kiev_2AM-aDisasterJustbeganKoprowskiT_SQLSat219_Kiev_2AM-aDisasterJustbegan
KoprowskiT_SQLSat219_Kiev_2AM-aDisasterJustbegan
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
 
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized EnvironmentsBest Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
 
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Si...
 
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
 
Performance Tuning
Performance TuningPerformance Tuning
Performance Tuning
 
Virtualization in Community Banks
Virtualization in Community BanksVirtualization in Community Banks
Virtualization in Community Banks
 
High Availability Options for DB2 Data Centre
High Availability Options for DB2 Data CentreHigh Availability Options for DB2 Data Centre
High Availability Options for DB2 Data Centre
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
 
Novell ZENworks Patch Management Best Practices
Novell ZENworks Patch Management Best PracticesNovell ZENworks Patch Management Best Practices
Novell ZENworks Patch Management Best Practices
 
12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management
12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management
12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management
 
Novell ZENworks Configuration Management Design and Implementation Best Pract...
Novell ZENworks Configuration Management Design and Implementation Best Pract...Novell ZENworks Configuration Management Design and Implementation Best Pract...
Novell ZENworks Configuration Management Design and Implementation Best Pract...
 
Virtualization Assessment Example
Virtualization Assessment ExampleVirtualization Assessment Example
Virtualization Assessment Example
 
Severalnines Self-Training: MySQL® Cluster - Part VII
Severalnines Self-Training: MySQL® Cluster - Part VIISeveralnines Self-Training: MySQL® Cluster - Part VII
Severalnines Self-Training: MySQL® Cluster - Part VII
 

Similar a Are the Native SQL Server Backup Utilities Holding You Back?

[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
Insight Technology, Inc.
 
Windows 8 dddd (beekelaar)
Windows 8 dddd (beekelaar)Windows 8 dddd (beekelaar)
Windows 8 dddd (beekelaar)
hypervnu
 
Dueling duplications RMAN vs Delphix
Dueling duplications RMAN vs DelphixDueling duplications RMAN vs Delphix
Dueling duplications RMAN vs Delphix
Kyle Hailey
 
Microsoft SQL Server 2014 Platform for Hybrid Cloud - Level 300 deck - From A...
Microsoft SQL Server 2014 Platform for Hybrid Cloud - Level 300 deck - From A...Microsoft SQL Server 2014 Platform for Hybrid Cloud - Level 300 deck - From A...
Microsoft SQL Server 2014 Platform for Hybrid Cloud - Level 300 deck - From A...
David J Rosenthal
 
MySQL enterprise backup overview
MySQL enterprise backup overviewMySQL enterprise backup overview
MySQL enterprise backup overview
郁萍 王
 

Similar a Are the Native SQL Server Backup Utilities Holding You Back? (20)

MCSA 70-412 Chapter 12
MCSA 70-412 Chapter 12MCSA 70-412 Chapter 12
MCSA 70-412 Chapter 12
 
AUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePointAUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePoint
 
Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?
 
Sql Server tips from the field
Sql Server tips from the fieldSql Server tips from the field
Sql Server tips from the field
 
Sql server tips from the field
Sql server tips from the fieldSql server tips from the field
Sql server tips from the field
 
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
 
Emc sql server 2012 overview
Emc sql server 2012 overviewEmc sql server 2012 overview
Emc sql server 2012 overview
 
Denver devops : enabling DevOps with data virtualization
Denver devops : enabling DevOps with data virtualizationDenver devops : enabling DevOps with data virtualization
Denver devops : enabling DevOps with data virtualization
 
Windows 8 dddd (beekelaar)
Windows 8 dddd (beekelaar)Windows 8 dddd (beekelaar)
Windows 8 dddd (beekelaar)
 
Best Practices for Deploying Enterprise Applications on UNIX
Best Practices for Deploying Enterprise Applications on UNIXBest Practices for Deploying Enterprise Applications on UNIX
Best Practices for Deploying Enterprise Applications on UNIX
 
Dueling duplications RMAN vs Delphix
Dueling duplications RMAN vs DelphixDueling duplications RMAN vs Delphix
Dueling duplications RMAN vs Delphix
 
Tuning DB2 in a Solaris Environment
Tuning DB2 in a Solaris EnvironmentTuning DB2 in a Solaris Environment
Tuning DB2 in a Solaris Environment
 
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
[db tech showcase Tokyo 2016] E34: Oracle SE - RAC, HA and Standby are Still ...
 
Microsoft SQL Server 2014 Platform for Hybrid Cloud - Level 300 deck - From A...
Microsoft SQL Server 2014 Platform for Hybrid Cloud - Level 300 deck - From A...Microsoft SQL Server 2014 Platform for Hybrid Cloud - Level 300 deck - From A...
Microsoft SQL Server 2014 Platform for Hybrid Cloud - Level 300 deck - From A...
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)
 
MySQL enterprise backup overview
MySQL enterprise backup overviewMySQL enterprise backup overview
MySQL enterprise backup overview
 
MySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & Tune
 
MySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR ScenariosMySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR Scenarios
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman script
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
 

Más de SQLDBApros

12 Days of Christmas for the SQL DBA
12 Days of Christmas for the SQL DBA12 Days of Christmas for the SQL DBA
12 Days of Christmas for the SQL DBA
SQLDBApros
 
What SQL Server Pros Can Get by Giving this Holiday Season
What SQL Server Pros Can Get by Giving this Holiday SeasonWhat SQL Server Pros Can Get by Giving this Holiday Season
What SQL Server Pros Can Get by Giving this Holiday Season
SQLDBApros
 
SunBridge Ensures the Health of their SQL Server Database with Solutions from...
SunBridge Ensures the Health of their SQL Server Database with Solutions from...SunBridge Ensures the Health of their SQL Server Database with Solutions from...
SunBridge Ensures the Health of their SQL Server Database with Solutions from...
SQLDBApros
 
DBA SQL Health Check-up
DBA SQL Health Check-upDBA SQL Health Check-up
DBA SQL Health Check-up
SQLDBApros
 

Más de SQLDBApros (10)

10 SQL Server Metrics to Monitor
10 SQL Server Metrics to Monitor10 SQL Server Metrics to Monitor
10 SQL Server Metrics to Monitor
 
Achieving Gold Medal Performance From SQL Server
Achieving Gold Medal Performance From SQL ServerAchieving Gold Medal Performance From SQL Server
Achieving Gold Medal Performance From SQL Server
 
12 Days of Christmas for the SQL DBA
12 Days of Christmas for the SQL DBA12 Days of Christmas for the SQL DBA
12 Days of Christmas for the SQL DBA
 
What SQL Server Pros Can Get by Giving this Holiday Season
What SQL Server Pros Can Get by Giving this Holiday SeasonWhat SQL Server Pros Can Get by Giving this Holiday Season
What SQL Server Pros Can Get by Giving this Holiday Season
 
What SQL Server Pros Can Get By Giving
What SQL Server Pros Can Get By GivingWhat SQL Server Pros Can Get By Giving
What SQL Server Pros Can Get By Giving
 
SunBridge Ensures the Health of their SQL Server Database with Solutions from...
SunBridge Ensures the Health of their SQL Server Database with Solutions from...SunBridge Ensures the Health of their SQL Server Database with Solutions from...
SunBridge Ensures the Health of their SQL Server Database with Solutions from...
 
DBA SQL Health Check-up
DBA SQL Health Check-upDBA SQL Health Check-up
DBA SQL Health Check-up
 
SQL Server Backup and Recovery Challenges
SQL Server Backup and Recovery ChallengesSQL Server Backup and Recovery Challenges
SQL Server Backup and Recovery Challenges
 
Cache issues from T-SQL-generated Plans and How to Manage Them
Cache issues from T-SQL-generated Plans and How to Manage ThemCache issues from T-SQL-generated Plans and How to Manage Them
Cache issues from T-SQL-generated Plans and How to Manage Them
 
I got 99 Problems but my backup ain't one by Richard Douglas
I got 99 Problems but my backup ain't one by Richard DouglasI got 99 Problems but my backup ain't one by Richard Douglas
I got 99 Problems but my backup ain't one by Richard Douglas
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Are the Native SQL Server Backup Utilities Holding You Back?

  • 1. Are the Native SQL Server Backup Utilities Holding You Back? Jason Hall Manager, Database Systems Consulting
  • 2. 2 Confidential Dell Software Agenda • Introductions – Speaker – Topic • Native Backup/Restore Limitations and Considerations – Full vs. Diff Backups – Backup Job Management – Backup Reporting – Backup Reliability – Always On Availability Groups – Restoring Only What You Need – Backup Security • Q&A Taken Throughout via GoToMeeting
  • 3. 3 Confidential Dell Software Who Are These Guys? • Jason Hall: Manager, Database Systems Consulting • David Gugick: Senior Product Manager, Backup and Recovery Solutions • Started w/ LiteSpeed in 2004 • Helped customers architect backup and recovery solutions • Frequent speakers at SSUG’s and Conferences • Always available – @jasonfhall or Jason_Hall2@Dell.com – @davidgugick or David_Gugick@Dell.com
  • 4. 4 Confidential Dell Software What Are We Going to Talk About? • Microsoft has always provided a very capable B&R solution • Comes with limitations • Several facts that must be considered when implementing • Explore what those limitations and considerations are while offering suggestions on how to work around • Lots of demo’s!!!
  • 5. 5 Confidential Dell Software Native Backup Limitations
  • 6. 6 Confidential Dell Software Full vs. Differential Backups
  • 7. 7 Confidential Dell Software Full vs. Differential Backups • Deduplication? • Seems like a no brainer right? • Differential backup challenges – Reliance on full backup – Effectiveness is dependent on amount of data change – Backup retention gets much more complex
  • 8. 8 Confidential Dell Software Reliance on Full Backup • A differential backup without its associated full is useless • Scenarios that can affect the full backup – File is mistakenly deleted – File is moved to an unknown or inaccessible location – File moved to tape and shipped offsite – A new full backup (w/out COPY_ONLY) is taken – File has become corrupted or unrecoverable
  • 9. 9 Confidential Dell Software Amount of Data Change • Differential backups only make sense when a small % of data has changed • Situations where data can change: – Unusual application activity – Unscheduled data loads/purges – Database Maintenance (Index Rebuilds) • Lots of change means large Differential backups – You don’t save time, space, and… – It can double (or worse) your recovery time
  • 10. 10 Confidential Dell Software File Retention • Ensure that you are not deleting Full’s that are required for Diff/Log restores • Full on Sunday, Diff’s Mon – Sat, Don’t delete older than 3 days • If 2nd Full Backup fails, make sure previous full is not deleted. – F – D – D – D – F (failed) – D – D (still good, just points back to first full)
  • 11. 11 Confidential Dell Software Tips & Tricks • If you are going to incorporate Differential backups… • For out of cycle Full backups, use COPY_ONLY – Or ensure that new full is a part of retention policy – BACKUP DATABASE AdventureWorks TO DISK=…. WITH COPY_ONLY • Perform data loads/purges before scheduled Full – Or perform out of cycle full after complete • For large index maintenance operations, perform before scheduled Full – Or perform out of cycle full after complete • If verifying or testing restores, test going back to full • Make sure retention policies are set to not delete full backups until new successful full
  • 12. 12 Confidential Dell Software Backup Job Management
  • 13. 13 Confidential Dell Software Backup Job Management • Many ways to run scheduled database backups – SQL Server Agent Jobs – SQL Server Maintenance Plans – Custom Scripted TSQL Jobs – Windows Scheduled Tasks – Typically only used for SQL Express – Centralized 3rd Party Scheduler – Enterprise Backup System – IBM Tivoli TSM – Symantec NetBackup – Dell NetVault Backup
  • 14. 14 Confidential Dell Software SQL Server Agent Jobs • Need to be managed on a per server basis – Can be very challenging in large environments • SQL Server Maintenance Plans cannot be easily transferred between servers – SSIS Packages w/ hard coded connection strings – Manually create them on each server • TSQL Scripts can provide portability – Might need to run differently per version of SQL Server – Need a solution to copy/deploy – May be complex depending on amount of custom logic required
  • 15. 15 Confidential Dell Software Example Script DECLARE db_cursor CURSOR FOR SELECT name FROM master.dbo.sysdatabases WHERE name NOT IN ('master','model','msdb','tempdb') -- exclude these databases OPEN db_cursor FETCH NEXT FROM db_cursor INTO @name WHILE @@FETCH_STATUS = 0 BEGIN SET @fileName = @path + @name + '_' + @fileDate + '.BAK' SET @backupstr = 'BACKUP DATABASE ' + @name + ' TO DISK = ' + char(39) + @fileName + char(39) EXECUTE (@backupstr) FETCH NEXT FROM db_cursor INTO @name END CLOSE db_cursor DEALLOCATE db_cursor
  • 16. 16 Confidential Dell Software Ways to Deploy • SSMS has Group Execute – Add the script as a job to one SQL Server – Export Job as a TSQL Script – Group Execute against all, or a sub group of servers
  • 17. 17 Confidential Global Marketing Demo
  • 18. 18 Confidential Dell Software Backup Job Management Considerations • Different backup directories for different servers • Spreading or staggering backup schedules • Notification • Different database types
  • 19. 19 Confidential Dell Software Backup Reporting
  • 20. 20 Confidential Dell Software Backup Reporting • SQL Server stores backup statistics in a set of local MSDB tables. • SSMS has a very inflexible report available – Easier and more powerful to query yourself • Backup failures are logged locally to: – SQL Agent Job Step Logs – SQL Server Error Logs – Windows Event Logs
  • 21. 21 Confidential Dell Software Backup Reporting Challenges • Backup statistics are only stored locally on the instance being backed up • If you have 100 servers and you want to report on all of your backups, have to run 100 reports • SSMS Group Execute can help here • Or you can build a reporting architecture to aggregate this data
  • 22. 22 Confidential Dell Software Example Backup Report Query • Query msdb.dbo.backup… tables adding filtering and sorting
  • 23. 23 Confidential Dell Software Demo
  • 24. 24 Confidential Dell Software Backup Reliability
  • 25. 25 Confidential Dell Software Backup Reliability • Native SQL Server backups and restores can be very “fragile” • Any IO related issue whether network or local will cause a failure – Only choices are: – Do we take a backup that conflicts w/ production workload? – Or, do we go the day without a backup and keep our fingers crossed?
  • 26. 26 Confidential Dell Software Backup Reliability Tips • When backing up over the network: – Make sure the network is reliable – Stagger backups that share the same network to avoid saturation – Look into possibly routing backups over a dedicated network infrastructure • If you cannot backup over the network: – Make sure you have plenty of local disk allocated – Backup to a disk other than where your data/log files are – Copy the backup across the network – Consider using a more robust option than COPY – ROBOCOPY – Provides fault tolerance and multi threading
  • 27. 27 Confidential Dell Software AlwaysOn Availability Groups
  • 28. 28 Confidential Dell Software AlwaysOn Availability Groups • Against Secondary Replica’s – Only Full (COPY_ONLY) and Log backups are supported – No differential backups or standard full’s are allowed. • Backup preference should be set to enforce policy or avoid license violation • Backup preference can be enforced through a MP – Not through BACKUP DATABASE – Not through Backup Wizard • Check sys.fn_hadr_backup_is_preferred_replica
  • 29. 29 Confidential Dell Software Demo
  • 30. 30 Confidential Dell Software Restoring Only What You Need
  • 31. 31 Confidential Dell Software All Or Nothing Restore • Restore types mirror backup types – Full – Diff (Full + Diff) – Log (Full + Log(s)) – Filegroup (Full + Log) • What if you only need a subset of data (i.e. Table, Stored Proc, Record, etc...)?
  • 32. 32 Confidential Dell Software Recovery Tips • Restore to separate server and grab what you need – Requires time and space • Proactive Solutions – AlwaysOn? – No – Log Shipping Load Delay – Database Snapshots
  • 33. 33 Confidential Dell Software Demo
  • 34. 34 Confidential Dell Software Backup Security
  • 35. 35 Confidential Dell Software Backup Security • Native SQL Server backups are created in plaintext • Can be read by any hexeditor (even notepad) • Used to be able to password protect backups (no longer available in 2012) • Compression can make it harder to read, but still possible • TDE Encrypts whole database (including backup) – Has many implications • Consider if and how backup data should be secured/encrypted
  • 36. 36 Confidential Dell Software Demo
  • 37. 37 Confidential Dell Software How Can Third Party Solutions Help • Backup Templates and Enterprise Reporting • Object Level Recovery • Up to AES 256 Encryption
  • 38. 38 Confidential Dell Software Summary • Hopefully we’ve given a lot of food for thought!! • How can we (Dell Software) help? – NetVault LiteSpeed for SQL Server – http://www.quest.com/webcast/litespeed-for-sql-server- demonstration819145.aspx
  • 39. 39 Confidential Dell Software Q&A Thank You!!!