question

JanB-0088 avatar image
0 Votes"
JanB-0088 asked JanB-0088 commented

Copying entire container between CosmosDB databases

What is the suggested approach to clone the content of a container from an existing CosmosDB database instance to a (fresh) container in a new database instance?

For example when migrating from a database with per-container provisioning to a new database with provisioning configured on database level existing content must be migrated to the new database in order to allow switching the provisioning granularity.

Could the Backup & Restore functionality be used to create a backup in the existing and restore to the new database?

Thanks!

azure-cosmos-db
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JanB-0088, just wanted to follow up on the answers provided by @KalyanChanumolu-MSFT and me. Please let us know if you need any more details. If any answer helped, you can mark it as 'Accept Answer' as this could help other community members having similar queries.

0 Votes 0 ·
KalyanChanumolu-MSFT avatar image
2 Votes"
KalyanChanumolu-MSFT answered JanB-0088 commented

Hi @JanB-0088

Substantiating @AnuragSharma-MSFT response, we have a couple more options you can explore to move data between Cosmos databases.
Please try the data migration tool and refer to a few other migration options for various use cases.


If an answer is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, the Azure Cosmos DB Data Migration tool appears to be exactly what we were looking for!

0 Votes 0 ·
AnuragSharma-MSFT avatar image
1 Vote"
AnuragSharma-MSFT answered

Hi @JanB-0088, welcome to Microsoft Q&A forum.

We have online backup and on demand restore in azure Cosmos DB available. There are 2 kinds of backup we can take:

  1. Periodic backup mode: Here restoring the database is done with the help of support team.

  2. Continuous backup mode (Preview): This is still in public preview but not recommended for production workloads.

For more details, please visit the below link:
Online backup and on-demand data restore in Azure Cosmos DB

I would suggest if you want to move data to new account or database, please go through the below link:

Move an Azure Cosmos DB account to another region

Please let me know if it helps.


If answer helps, you can mark it as 'Accept Answer'






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.