Sauvegarde et copie de bases de données SQL 2014 vers Azure

Transcription

Sauvegarde et copie de bases de données SQL 2014 vers Azure
Sauvegarde et copie de bases de
données SQL 2014 vers Azure
SharePoint Saturday
Montréal
Eric Moreau, MVP, Moer inc.
[email protected]
23 mai 2015
SharePoint Saturday
Montréal
Qui suis-je?
•
•
•
•
Consultant indépendant (Moer inc.)
MVP depuis juillet 2004
SQL User Group co-leader de Communauté des développeurs Microsoft de Montréal
(msdevmtl.com)
Je me spécialise dans le développement d’applications .Net (VB et C#) utilisant MS SQL
Server
SharePoint Saturday
Montréal
Agenda
•
•
•
Faire une sauvegarde (backup) vers Azure
Récupérer un backup de Azure
Faire une copie d’une base de données vers SQL Azure
SharePoint Saturday
Montréal
Mon environnement
•
•
SQL Server 2014 Developer edition installé localement
Compte Azure
SharePoint Saturday
Montréal
Why Do We Need Cloud DR for SQL Server?
•
An event can cause on-premises SQL
Server to become unavailable
‐ Temporarily (e.g. gateway failure)
‐ Permanently (e.g. flooding)
•
A disaster recovery site is expensive
‐ Site rent + maintenance
‐ Hardware
‐ Ops
SharePoint Saturday
6
Montréal
Typical configuration
SharePoint Saturday
7
Montréal
Backup to Windows Azure
On-site/off-site storage costs
Device management costs
•
•
•
XDrives limited to 1 terabyte
Max 16 drives
Manage drives and policy
WA
•
•
Box
Windows Azure
storage
•
•
•
•
•
•
•
Blobs
Near “bottomless” storage
Off-site, geo-redundant
No provisioning
No device management
Media safety (decay-free)
Remote accessibility
SharePoint Saturday
Montréal
Backup to Windows Azure
Backup GUI
Simple configuration UI
Easy creation of Azure credential
No overhead
Restore GUI
SharePoint Saturday
Montréal
Backup to Windows Azure Tools
SharePoint Saturday
Montréal
Backing Up Through Windows Azure Tool
Windows Azure Tool is a standalone tool that adds backup capabilities to Windows Azure and backup encryption to
previous versions of SQL Server
Benefits
Offers one-cloud backup strategy across previous versions of
SQL Server, including 2005, 2008, and 2008 R2
• Adds backup encryption to previous versions, locally or in the
cloud
• Takes advantage of backup to Windows Azure
• Easier to configure
•
http://www.microsoft.com/en-us/download/details.aspx?id=40740
SharePoint Saturday
Montréal
Demo for Backup &
Restore to/from Cloud
Backup to Windows Azure
• Backing up to Azure is new to SQL
2014
• Taking a backup is easy
• Right-click your database
• Select Tasks
• Select Back Up …
SharePoint Saturday
Montréal
Backup to Windows Azure
• The Destination option
now let you pick URL
• Click the Add button
SharePoint Saturday
Montréal
Backup to Windows Azure
• Ensure the file name has a
.bak extension
• Otherwise, you will get
trouble restoring it!
• Set your credential
• Set the correct container
SharePoint Saturday
Montréal
Backup to Windows Azure
• Open the Options tab
• You can set the
compression
• You can set the
encryption
SharePoint Saturday
Montréal
Backup to Windows Azure
SharePoint Saturday
Montréal
Backup to Windows Azure
SharePoint Saturday
Montréal
Backup to Windows Azure
You can also script the backup
… or use PowerShell
… or .Net using SMO
SharePoint Saturday
Montréal
Backup to Windows Azure
SharePoint Saturday
Montréal
Backup to Windows Azure
Restoring a backup is similar
Right-click Databases
Select Restore Database
Set the media type to URL
SharePoint Saturday
Montréal
Backup to Windows Azure
Connect to your Azure storage
SharePoint Saturday
Montréal
Backup to Windows Azure
Select the backup set you want to restore
This is why it is important to have .bak extensions
SharePoint Saturday
Montréal
Backup to Windows Azure
Set your database name and click
OK
SharePoint Saturday
Montréal
Backup to Windows Azure
You are happy!!!
SharePoint Saturday
Montréal
Easy on-ramp to cloud
SharePoint Saturday
Montréal
Hybrid Cloud Solutions
SharePoint Saturday
Montréal 28
SQL in a VM – Dev/Test in the Cloud
Key Benefits
Reduce project overhead
Test
TFS in Windows Azure
Speed time to market
Secure, redundant source
code
Development Work Stations
SQL Server in a
Windows Azure
Virtual Machine
SQL Server
On-Premises
SQL Server Dev Tools On-Premises
“Telenor saved 70% on test,
development and demo that could be
turned off when finished to minimize
their capital outlays,”
Marius Pedersen, Telenor Group
70%
savings
Deploy
No
Ready
in hours, resource
not weeks
limits
SharePoint Saturday
29
Montréal
What is SQL Database?
A relational database-as-a-service, fully managed by Microsoft.
For cloud-designed apps when near-zero administration and enterprise-grade capabilities are key.
Perfect for organizations looking to dramatically increase the DB:IT ratio.
SQL Server in a VM
Azure SQL Database
Best for…
Resources
TCO
benefits
Scalability
SharePoint Saturday
Montréal
SQL Database – ready for business-class apps
SLA
Increased from 99.9% to 99.99% uptime SLA
Performance
New service design point enables scale up of resources, delivering
predictable throughput & performance
Protection
Point-in-time-restore, geo-restore, and standard and active georeplication protect against human & environmental-initiated events
Compliance
Azure certifications: ISO, HIPAA BAA, EU Model Clause
Auditing on SQL Database
Flexibility
Hourly billing & broad set of price points
SharePoint Saturday
Montréal
What are the SQL Database Service Tiers?
*The 99.99% availability SLA does not apply to the existing Web and Business editions, which will continue to be supported at 99.9% availability.
here
SharePoint Saturday
Montréal
Demo for Deploy
Databases to
Windows Azure Wizard
Deploy DB to Windows Azure
• To deploy a database to Windows
Azure:
• Right-click the database
• Select Tasks
• Select Deploy Database to
Windows Azure SQL Database
• Notice that a similar wizard exists to
deploy to a VM
SharePoint Saturday
Montréal
Deploy DB to Windows Azure
• Click Next on the
Welcome dialog
SharePoint Saturday
Montréal
Deploy DB to Windows Azure
• You first need to connect to the
target (Azure)
SharePoint Saturday
Montréal
Deploy DB to Windows Azure
• Specify:
• Database name
• Edition of database
• Size of database
SharePoint Saturday
Montréal
Deploy DB to Windows Azure
• Review the settings
and click Finish
SharePoint Saturday
Montréal
Deploy DB to Windows Azure
• All green!!!
SharePoint Saturday
Montréal
Deploy DB to Windows Azure
• If anything went wrong…
SharePoint Saturday
Montréal
Deploy DB to Windows Azure
• Now that you have a database in
Azure
• You can use your local SSMS to
connect to it
• Connect to server
• Ensure your IP address is trusted
in the Azure management console
SharePoint Saturday
Montréal
Deploy DB to Windows Azure
• Right-clicking an
Azure table in
SSMS
• Anything missing?
SharePoint Saturday
Montréal
Or
Argent
Bronze
Web
Merci à nos commanditaires !
SharePoint Saturday
Montréal
SharePint !
Ce soir à 18h
Le Trèfle, 3971 Rue Ontario E