# Restoring a DocumentDB Cluster to the Different Region

You can restore a DocumentDB cluster to a selected target availability zone in the different region and change the node type of the cluster during the restore.

You can restore a DocumentDB cluster from any of the following backups:

- The most recent backup

- A backup from a specified date and time

## Before You Begin

- If the DocumentDB cluster is KMS encrypted, ensure that it meets the KMS Key Permission Requirements for Amazon DocumentDB.

## Procedure

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

   The database overview page appears.

2. On the Instances tab, in the Actions column for the DocumentDB instance, click the action button , and then click Restore.

   The Backup content page appears.

3. On the top-right of the page, click Change source.

   The Change source dialog box appears.

4. From the restore from copy list, select the secondary snapshot copy, and then click Ok. Based on the Mapping provided in the secondary snapshot copy, the region on the backup content page gets updated.

   For more information about mapping, see Enabling Cross-Region Copy of an Amazon DocumentDB Snapshot

5. Select the backup to restore:

   - To restore the most recent backup, in the upper-right corner of the page, select Show latest backup.

   - To restore a backup from a specific date and time, in the upper-right corner of the page, select Show backup as of a specific date, and then select the backup.

   - To restore a backup from a date range, in the upper-right corner of the page, select Show backup for a date range, and then select the backup.

6. Click Restore.

   The Restore options dialog box appears.

7. In the Cluster identifier box, type the identifier of the cluster that will be created from the snapshot. The identifier must not already exist within the region.

8. In the Number of instances box, type the number of instances to deploy.

9. Under Advanced, do the following:

   - To change the compute and memory capacity of the instance, from the Instance class list in the Advanced section, select the instance class.

   - To define the subnet group, in the Subnet group box, type the subnet group. Specifying a subnet group may limit the choice of availability zones.

   - To define which subnets and IP ranges the cluster or instance can use in the Amazon virtual private cloud (VPC), in the VPC security group IDs box, enter the names of the security group ID.

     You can add multiple security groups, separated by commas. For example, you can enter "sg-1122,sg-3344".

10. Optional: To receive an Email when the restore operation completes, select the When the job completes, notify me via email check box.

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

12. Click Submit.

    The Confirm restore dialog box appears.

13. Click Yes.

×

Loading...