how to take a backup for an Azure Cosmos DB for MongoDB?

Reyes Monsalve, Ruben Dario 31 Reputation points
2024-03-08T15:39:58.9433333+00:00

Hi team,

We have a resource group that more than likely is going to be deleted as is no longer in use, but we would like to take a backup of the existing Azure Cosmos DB for MongoDB and store it on a different RG or location. How we can achieve this? Any ideas?

Best Regards

Rubén

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,902 questions
{count} votes

Accepted answer
  1. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2024-03-11T20:21:09.85+00:00

    Reyes Monsalve, Ruben Dario

    Apologies for the misunderstanding.

    I understood that your current situation is that you would like to take a backup and delete the resources of the RG.

    Backup of Cosmos DB database is not exportable/movable, you will need to extract your data using a mechanism like adf/spark to remote location of your choice.

    https://learn.microsoft.com/en-us/azure/data-factory/connector-mongodb?tabs=data-factory

    Please let me know if this helps by commenting below.

    Regards,

    Oury

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. RahulRandive 10,486 Reputation points Volunteer Moderator
    2024-03-08T18:23:19.1+00:00

    Hi @Reyes Monsalve, Ruben Dario

    You can first restore an account as a backup within the same resource group, then use the Move feature to relocate the account to a new resource group or subscription.

    Or, you can directly move your current account to a different resource group using the Move feature.

    User's image

    Hope this help! Let me know if you have any questions.


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.