How can I backup an Azure Cosmos DB

17,165

Solution 1

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].

Solution 2

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.

Share:
17,165
Georgia Kalyva
Author by

Georgia Kalyva

Updated on June 04, 2022

Comments

  • Georgia Kalyva
    Georgia Kalyva about 2 years

    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?

  • SijuMathew
    SijuMathew over 2 years
    The referred page does not have any useful information, typical Microsoft style page