Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I backup an Azure Cosmos DB [closed]

I have an Azure Cosmos DB and I need to delete all the resources from this subscription. Is there any way to take a backup offline from the portal?

like image 250
Georgia Kalyva Avatar asked Jun 06 '18 07:06

Georgia Kalyva


People also ask

How do I backup my cosmos database?

Sign into the Azure portal. Navigate to your Azure Cosmos account and open the Backup & Restore pane. Update the backup interval and the backup retention period as required. Backup Interval - It's the interval at which Azure Cosmos DB attempts to take a backup of your data.

How do I enable continuous backup in Cosmos DB?

Open the Azure Cosmos DB account in the Azure portal and click on features. As shown below, the continuous back is in disabled mode. Click on the continuous backup and Enable it. It starts the backup migration.


2 Answers

MS has finally introduced a backup policy feature to CosmosDB!
See https://docs.microsoft.com/en-us/azure/cosmos-db/online-backup-and-restore#modify-the-backup-interval-and-retention-period
I guess this removes the need for third party and/or custom tools to do such a basic Ops routine.

like image 126
Sérgio Paim Avatar answered Oct 13 '22 14:10

Sérgio Paim


UPDATE : Cosmos DB now supports backup Online backup and on-demand data restore in Azure Cosmos DB


You can use Data Migration Tool suggested on Automatic online backup and restore with Azure Cosmos DB article to do the same.

There is no way to take a backup and import to Azure CosmosDB.

The recommendation is to open a support ticket (e.g. via Azure Portal) or call Azure Support to streamline the backup/restore strategy and to request Azure to restore the latest backup in case of a disaster event. In addition, you can contact the Azure CosmosDB team by sending an email to [email protected].

like image 29
Sajeetharan Avatar answered Oct 13 '22 14:10

Sajeetharan