Performing Backups & Restores (part 2 of 3)

 



To read part 1 please click here
To read part 3 please click here


SQL Server Backups

SQL Server backup to URL (Azure Storage)

If you want to implement SQL Server Backup to URL, then, you have to use the following methods:
  • Back Up Task in SQL Server Management Studio- A database can be backed up to URL via the Back Up task in SQL Server Management Studio using an SQL Server Credential.

  • SQL Server Backup to URL Using Maintenance Plan Wizard- The Maintenance Plan Wizard in SQL Server Management Studio includes URL as one of the destination options, and the other supporting objects required to backup to Windows Azure storage like the SQL Credential.

  • Transact-SQL , PowerShell or C#- These options should create a striped backup set, an SQL Server file-snapshot backup, or an SQL credential using Shared Access token.

SQL Server Automated Backup v2 for Azure VMs

The Managed Backup can be automatically configured by Automated Backup v2 to Microsoft Azure for all existing and new databases on an Azure VM running SQL Server 2016/2017 Standard, Enterprise, or Developer editions which allows you to configure regular database backups utilizing Azure blob storage.

Automated Backup v2 can easily work with SQL Server 2016 or higher while Automated Backup v1 can be used to back up your databases for SQL Server 2014.

Database Configuration:

  • The full recovery model can be easily used by Target databases.
  • It is unnecessary to use full recovery model by System databases, but while using log backups for Model or MSDB you have to use full recovery model.
  • Target databases must be on either the default SQL Server instance, or a named instance installed by the procedure described at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sql/virtual-machines-windows-sql-server-iaas-faq#administration   

To configure Automated Backup v2, the Azure portal or Az PowerShell can also be used during provisioning or existing SQL Server 2016/2017 VMs.

SQL Server Backup in Azure VMs (to Recovery Services Vault)

This process includes running discovery of SQL Server instances and their databases from an Azure Recovery Services vault, selecting the databases to be backed up in the discovery results as well as assigning a backup policy that determines backup settings, like frequency and retention. If the SQL Server VM isn't created with the help of Azure Marketplace image, then, you should assign the sysadmin role to NT SERVICE\AzureWLBackupPluginSvc account.

SQL Server file snapshot-based backups to Azure Storage

Azure snapshots can be used by SQL Server File-snapshot backup to provide almost instantaneous backups and quicker restores for database files stored using the Azure Blob storage service which allows you to simplify your backup as well as restore policies.

Azure PowerShell scripts and SQL queries can be used to apply SQL Server data files as Azure Blobs which will also readily help you to create a database in SQL Server running on-premises or in a VM on Azure as well as setting up dedicated storage location for your data  in Azure blob Storage. 

Whatever implementation method you use, this process involves setting up a storage account, creating SQL Server credentials as well as creating a database files stored in blobs. SQL server also requires the credentials to store the security information which can be used to write and read from the Azure blob container.  






To read part 1 please click here
To read part 3 please click here











Comments

Popular posts from this blog

Query, Visualize, & Monitor Data in Azure Sentinel

Planning for Implementing SAP Solutions on Azure (Part 2 of 5)

Work with String Data Using KQL Statements