How to Keep the backup for long term

RahulRandive 9,666 Reputation points
2024-07-18T13:48:05.1466667+00:00

I am facing an issue related to pricing and billing information. and want to remove the resource group (RG) but need to keep the backup of the database (DB) for a long time. Seeking advice on the best cost performance for this.

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community

Azure SQL Database
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,387 Reputation points Microsoft Employee
    2024-07-18T14:08:59.79+00:00

    Greetings!

    There is no way to download LTR backup directly from Azure Storage.

    You should follow Long-term backup retention - Azure SQL Database & Azure SQL Managed Instance | Microsoft Learn to configure LTR backup policy before deleting resource group.

    And should use PowerShell command to get details information about LTR backups after deleting resource group.

    For more information, you can refer to Azure SQL Database: Manage long-term backup retention - Azure SQL Database | Microsoft Learn and Get-AzSqlDatabaseLongTermRetentionBackup (Az.Sql) | Microsoft Learn

    Regards

    Geetha

    0 comments No comments

  2. Nandan Hegde 32,181 Reputation points MVP
    2024-07-19T04:15:40.5033333+00:00

    There can be 2 cost effective ways for a long term backup:

    1. In case if the backup need not be accessed on an immediate basis, you can extract the database bacpac and upload in azure blob storage: this would be the most cost effective solution And in case if there is need to access the db, you need to restore the bacpac
    2. Another scenario would be to clone the current database and modify the database tier to serverless type which would auto pause in case of no activity.
    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.