# Restoring Collections to a Different Subscription for Azure Cosmos DB for MongoDB

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

1. From the Command Center navigation pane, go to Protect > Databases.

   The database overview page appears.

2. On the Instances tab, click the instance.

   The instance properties page appears.

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

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

5. Click Restore.

   The Restore options page appears.

6. From the Destination instance list, select the destination cloud account/instance pair.

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

8. 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).

9. In the Number of parallel writers box, type the number of streams to be used by the restore operation.

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

11. To restore collections or databases with a different name, under Content, in the Destination box, type a new name.

12. You can configure a schedule to repeat this restore operation. To create a schedule, do the following:

    1. Click Schedule.

       The Add schedule dialog box appears.

    2. In the Name box, type a name for the schedule.

    3. Configure the Frequency and Repeat parameters.

    4. To specify exceptions to the schedule, click Exceptions.

       The Exceptions dialog box appears.

    5. Configure the exception parameters:

       - You can click Add Exception to save a set of exception parameters and continue adding sets of exception parameters.

       - Click Save when you have finished configuring the exception parameters.

    6. Under the Range of recurrence section, specify the Start date and End date to schedule the recurrence range of the restore operation.

    7. To save the schedule and return to the restore dialog box, click Schedule.

13. Click Submit.

×

Loading...