You can restore databases and collections in Azure Cosmos DB for MongoDB to the same or a different Cosmos DB account in the same Azure subscription. You can also restore the database and collections with the same name or a different name.
Procedure
-
From the navigation pane, go to Protect > Databases.
The database overview page appears.
-
On the Instances tab, click the instance.
The instance properties page appears.
-
In the Recovery points section, select a date that contains a backup, and then click RESTORE.
Dates with a circle indicate that a backup exists for that day.
A page listing the Cosmos DB accounts and their backup times appears.
-
Click the account to restore, then select the data that you want to restore:
-
To restore all of the data, select the check box next to the Database heading.
-
To restore selected databases, select the check box next to the database.
-
To restore individual collections, expand the database name on the left side of the page, and then select the collections that you want to restore.
-
-
Click RESTORE.
The Restore options page appears.
-
To redirect the selected collections to a different Cosmos DB account in Azure, move the Redirect all collections toggle key to the right, and then select a destination Cosmos DB account.
-
To increase the throughput of the collection and increase the restore performance, move the Adjust collection level throughput toggle to the right, and then select the number of Request Units (RUs).
-
In the Number of parallel writers box, type the number of streams to be used by the restore operation.
-
If you want to restore collections that already exist on the destination, move the Overwrite destination collections toggle key to the right.
If you do not enable this option and collections already exist on the destination, the restore jobs may fail.
-
To restore collections or databases with a different name, under Content, in the Destination box, type a new name.
-
Click SUBMIT.