To use this backup mechanism, take the following steps:
Create an Azure storage account.
Create a container within the storage account to contain your backup files.
Generate a Shared Access policy and apply the Shared Access Signature (SAS) token to the Azure blob container.
Create a SQL Server credential based on the SAS token.
CREATE CREDENTIAL
Specify TO URL as an argument with your BACKUP DATABASE and BACKUP LOG commands.
BACKUP DATABASE AdventureWorks2016 TO URL = 'https://
Backup to URL is a strategy you will want to use to save money when your Azure virtual machine is using premium storage because SQL Server backup to URL uses standard storage. The maximum size for a single file using a SAS token is 200 GB, and the maximum backup size using a striped backup set is 12.8 terabytes (TB).
Note You can back up to a single backup with a maximum size of 1 TB using the legacy SQL Server 2014 syntax of WITH CREDENTIAL that utilizes the storage account access key rather than a SAS key. This syntax is being deprecated.
Source of Information : Migrating SQL Server Databases to Azure
No comments:
Post a Comment