You can restore databases and collections in Azure Cosmos DB for MongoDB to a Cosmos DB account in a different Azure subscription. You can also restore the database and collections with the same name or a different name.
The software increases the throughput of the collection, measured in Request Units per second (RU/s), only if the value of the Adjust collection level throughput setting on the GUI is higher than the throughput the container had at the time of the backup that is being used for the restore operation.
For collections with shared throughput, the settings that you configure with the GUI have the following effects:
-
Restore to an existing database, with Adjust collection level throughput turned on and Overwrite destination collections turned on:
The throughput is adjusted at the database level during the restore operation. After the restore completes the throughput is reset to the throughput value of the source database.
-
Restore to an existing database, with Adjust collection level throughput turned off and Overwrite destination collections turned on:
Collections are deleted but the database is not deleted.
-
Restore to a new database, with Adjust collection level throughput turned either on or off:
The new database is created with each collection having a minimum throughput of 400 RU/s and manual scaling of 400 RU/s. There is no throughput adjustment when the restore operation is complete.
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.
-
From the Destination cloud account list, select the cloud account for the destination.
-
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.