24 hop edición español - sql server 2014 backup encryption - percy reyes
DESCRIPTION
Veremos la mejora en seguridad que significa usar Backup Encryption en SQL Server 2014 así como también su impacto en el rendimiento y sus escenarios de usos.TRANSCRIPT
![Page 1: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/1.jpg)
SQL Server 2014 Backup
EncryptionPerformance and security
Expositor: Percy Reyes (MCITP DBA, MCITP Dev, MCTS, MCP) – www.percyreyes.com
Moderador: Carlos Ulate
![Page 2: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/2.jpg)
Gracias a nuestros auspiciadores
Database Security as Easy as A-B-C
http://www.greensql.com
Hardcore Developer and IT Training
http://www.pluralsight.com
SQL Server PerformanceTry PlanExplorer today!
http://www.sqlsentry.com
![Page 3: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/3.jpg)
Próximos SQL Saturday
24 de Enero de 2015 https://www.sqlsaturday.com/346/register.aspx
18 de Abril de 2015 https://www.sqlsaturday.com/368/register.aspx
9 de Mayo de 2015 https://www.sqlsaturday.com/373/register.aspx
6 de Diciembre de 2014 https://www.sqlsaturday.com/351/register.aspx
![Page 4: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/4.jpg)
4
Capítulo Global PASS en Español
4
Reuniones semanales todos los miércoles a
las 12PM UTC-5 (Hora de Colombia)
https://www.facebook.com/SpanishPASSVC
![Page 5: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/5.jpg)
5
Asistencia Técnica
Si requiere asistenciadurante la sesión debe usar la sección de preguntas que esta en el menú de la derecha.
Use el botón de Zoom para ajustar su pantalla al tamaño deseado
Escriba sus preguntas en la sección de preguntas que esta en el menú de la derecha
![Page 6: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/6.jpg)
6
Percy Reyes
Bachelor in Systems Engineering and Senior Database Administrator focused
on Microsoft SQL Server Internals with over 10+ years of extensive experience
managing database servers on SQL Server 6.5, 7.0, 2000, 2005, 2008, 2008
R2, 2012 and 2014. I am experienced working for all sizes of companies in
Peru and USA which are running on mission critical database servers. I am a
frequent Speaker about SQL Server technologies for over 9 years at Local User
Group Meetings, Webcasts, and National Conferences. I am currently the
SQLPASS Peru Chapter Leader http://peru.sqlpass.org . I am a contributor and
author at MSSQLTips.com.
6
![Page 7: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/7.jpg)
7
Agenda
Planning a Database Backup Strategy
Backing Up a User Database (with encryption)
Restoring User Databases (from backup encrypted)
![Page 8: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/8.jpg)
8
Lesson 1: Planning a Database Backup Strategy
• Overview of Microsoft SQL Server Backup Types
• What Are Recovery Models?
• What Is a Database Backup Strategy?
• Considerations for Backup Operators and Media
![Page 9: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/9.jpg)
9
Overview of Microsoft SQL Server Backup Types
Backup Types Description
Full All data files and part of the transaction log
Differential The parts of the database that have changed since the last full database backup
Partial The primary filegroup, every read/write filegroup, and any specified read-only filegroups
Transaction Log Any database changes recorded in the log files
Tail-Log Backup Log backup taken of the tail of the log just before a restore operation
File/File Group Specified files or filegroups
Copy Only The database or log (without affecting the backup sequence)
![Page 10: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/10.jpg)
10
What Are Recovery Models?
Recovery Model Description
Simple •No log backups•Automatically reclaims log space to keep space requirements
small
Full • Requires log backups•No work is lost due to a lost or damaged data file• Can recover to an arbitrary point in time
Bulk Logged • Requires log backups• An adjunct of the full recovery model that permits high-
performance bulk copy operations• Reduces log space usage by using minimal logging for most bulk
operations
![Page 11: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/11.jpg)
11
What Is a Database Backup Strategy?
A Database Backup Strategy:
May Involve Performing Regular Full + Diff + Log Backups
Is appropriate for small/large databases (depends on your business)
Restore following an order, always the first to be restoredis Full Backup, then Diff and finally Log Backup.
Sunday Monday Tuesday
![Page 12: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/12.jpg)
12
Considerations for Backup Operators and Media
SQL Server Backups:
Are written to a backup device
Can be written to tape or disk but not simultaneously to both
Are written to media sets and media families
Database Backups can be performed by:
Sysadmin Server Role Members
Db_owner fixed database Role Members
Db_backupoperator Role Members
![Page 13: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/13.jpg)
13
Lesson 2: Backing Up User Databases
• Performing a Full Database Backup
• Performing a Differential Backup
• Performing a Transaction Log Backup
•What Is Backup Compression?
•What Is Encryption Compression?
•What Is Backup Compression?
•Options for Ensuring Backup Integrity
![Page 14: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/14.jpg)
14
Performing a Full Database Backup
T-SQL Syntax:
BACKUP DATABASE databaseTO backup_device [ ,...n ][ WITH with_options [ ,...o ] ] ;
Performs the following actions:
• Backups up the specified database
• Specifies the backup device
• Specifies options i.e. { COMPRESSION | NO_COMPRESSION }
![Page 15: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/15.jpg)
15
Performing a Differential Backup
T-SQL Syntax:
BACKUP DATABASE database_name TO <backup_device> WITH DIFFERENTIAL
Important: You cannot create a differential database backup unless the database has been backed up first
![Page 16: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/16.jpg)
16
Performing a Transaction Log Backup
T-SQL Syntax:
BACKUP LOG database_name TO <backup_device>
Performs the following actions:
• Specifies a backup of the transaction log only
• Backs up log from the last successfully executed log backup to the current end of the log
• Truncates inactive log records unless {NO_TRUNCATE or COPY_ONLY} is specified
![Page 17: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/17.jpg)
What Is Backup Compression? (new feature since SQL Server 2008)
Backup Compression:
Restrictions:
Can not co-exists on same media as uncompressed backups
Can not be read by earlier versions of SQL Server
Can not share a tape with NT Backups
Compresses backup size on device
New in SQL Server 2008
Increases I/O performance, increases CPU usage
![Page 18: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/18.jpg)
What Is Backup Encryption?(new feature since SQL Server 2014)
Backup Encryption:
Restrictions:
SQL Server Express and SQL Server Web do not support backup encryption
Can not be read by earlier versions of SQL Server
Appending to an existing backup set is not supported for encrypted backups
Encrypt the data while creating a backup
New in SQL Server 2014
Encryption Algorithm: AES 128, AES 192, AES 256, and Triple DES
Encryptor: A certificate or asymmetric Key
All storage destinations: on-premises and Window Azure storage
![Page 19: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/19.jpg)
19
Performing a Encrypted Backup
Backup to disk with encryption
• Create a Database Master Key of the master database
• Create a Backup Certificate
• Backup the database
Backup to Windows Azure Storage with Encryption
• Create SQL Server Credential
• Create a Database Master Key
• Create a Backup Certificate
• Backup the database
![Page 20: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/20.jpg)
20
Options for Ensuring Backup Integrity
Contingencies:
Mirrored Media Sets
Backup Verification
Checksums
![Page 21: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/21.jpg)
21
Demonstration: Backing Up a Database
In this demonstration we will:
Backup the database by using Encryption Feature
Enable backup compression
Verify the backup
Perform a checksum
![Page 22: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/22.jpg)
22
Lesson 3: Restoring User Databases
•How the Restore Process Works
• Types of Restores
•Restoring a Database
•Restoring a Transaction Log
![Page 23: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/23.jpg)
23
How the Restore Process Works
The restore process consists of three distinct phases:
The Data Copy Phase1.
The Redo Phase2.
The Undo Phase3.
![Page 24: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/24.jpg)
24
Types of RestoresRestore Types:
Complete Database Restore
File Restore
Page Restore
Piecemeal Restore
Online Restore
![Page 25: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/25.jpg)
25
Restoring a Database
Steps to Restore a Database:
Perform a Tail-Log Backup
Determine the Target Recovery Point(full or bulk-logged recovery models only)2.
Determine the Type of Restore to Apply3.
1.
Identify Which Backups You Require4.
Begin the Restore Sequence5.
![Page 26: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/26.jpg)
26
Restoring a Transaction Log
Steps to Restore the Transaction Log:
Full or Differential Database Restore
Restore Transaction Logs in Order W/ NORECOVERY2.
Restore Latest Log WITH RECOVERY3.
1.
![Page 27: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/27.jpg)
27
Performing a Restore from Encrypted Backup
1. Backup to disk the master key and certificate used to create the encrypted backup
2. Then restore them on SQL Server Instance Destination
• Restore Master Key
• Open Master Key before restore/create the certificate
• Create/Restore the certificate
3. Restore Database from Encrypted Backup
![Page 28: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/28.jpg)
28
Demonstration: Restoring a Database
In this demonstration, you will restore the database from encrypted backup
![Page 29: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/29.jpg)
Preguntas?
![Page 30: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/30.jpg)
SSAS multidimensional mejoresprácticas
Ahias Portilo
A continuación …
![Page 31: 24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes](https://reader034.vdocuments.mx/reader034/viewer/2022051400/5599a1671a28abf4758b484b/html5/thumbnails/31.jpg)
Gracias por participar