SQL Server backup to URL for Microsoft Azure Blob Storage - local storage needed?

Sean Potter 20 Reputation points
2023-06-16T16:38:39.57+00:00

Hello,

If I back up my database to Azure Blob Storage via a URL target, is the data sent directly to Azure? Or are there .BAK files created on the local server?

I have a very large database, but only about 49GB of free space on the server it resides on (this is on-prem). I would like to send a backup to Azure.

Azure SQL Database
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
SQL Server Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lucas Tavares de Moraes 0 Reputation points
    2023-06-16T16:48:50.48+00:00

    Boa Tarde!

    Se você fizer backup do seu banco de dados para o Armazenamento de Blobs do Azure por meio de um destino de URL, os dados serão enviados diretamente para o Azure, sem a criação de arquivos .BAK no servidor local.

    Ao usar o serviço de backup do Azure para fazer backup do seu banco de dados, você pode definir o destino de backup como um contêiner de armazenamento de blobs no Azure. Nesse caso, o backup será feito diretamente no Azure, sem a necessidade de criar arquivos .BAK no servidor local.

    Essa abordagem é particularmente útil quando você possui restrições de espaço em disco no servidor local, como no seu caso em que você mencionou ter apenas cerca de 49 GB de espaço livre. Ao fazer o backup diretamente no Azure, você pode aproveitar o armazenamento escalável e flexível do Azure para lidar com seu banco de dados grande.

    Certifique-se de configurar corretamente o destino de backup para o Armazenamento de Blobs do Azure e fornecer as credenciais e configurações necessárias para estabelecer a conexão e realizar o backup com sucesso.

    Espero que te ajude!

    0 comments No comments

  2. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2023-06-16T21:36:39.6966667+00:00

    I've been reading the top SQL Server backup to URL, and it does not spell this out. But it is very difficult to read it as it would just write all to local disk and then copy to URL. For one thing, when you take a normal disk backup, you specify the destination. Why wouldn't you all of a sudden not be able to do that if you are backing up to URL? That is, if backup to URL would go through a local file. But, obviously, if the BACKUP TO URL writes directly to BLOB storage, there is no need to for local disk.

    I note also in the topic that there is a size limitation of the backup device of 50000 blocks or around 200 GB.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.