Sql server 2016 split url backup into multiple files

All we need is an easy explanation of the problem, so here it is.

I have a database backing up into an Azure page blob via URL backups set up from SSMS. I am trying to find out how to split the backup into smaller chunks. I have a 2 TB database that is now backing up in to one large file, I want to separate it into 4 smaller files. Any hints would be helpful.

Environment Summary: Azure VM with SQL 2016 Enterprise
Backup Method: URL Backup to Azure Page Blob
Security Involved: Key Vault and Credentials
Current Status: Backups working
Desired Status: Large Backups split into multiple files

I am ok with a powershell example.
Thank you

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

you should split it into multiple url in this way:

BACKUP DATABASE mydb
TO URL = 'https://mystorage.blob.core.windows.net/mycontainer/mydbBackupSetNumber2_0.bak',
URL = 'https://mystorage.blob.core.windows.net/mycontainer/mydbBackupSetNumber2_1.bak',
URL = 'https://mystorage.blob.core.windows.net/mycontainer/mydbBackupSetNumber2_2.bak'
WITH COMPRESSION, MAXTRANSFERSIZE = 4194304, BLOCKSIZE = 65536;  

ref:
https://docs.microsoft.com/en-us/archive/blogs/sqlcat/backing-up-a-vldb-to-azure-blob-storage

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply