All Products
Search
Document Center

ApsaraDB for MongoDB:Restore backup data to a new instance by backup point

Last Updated:Nov 07, 2024

ApsaraDB for MongoDB allows you to restore backup data to a new instance by backup point. If you want to test or verify data without interrupting the running of your database, you can use point-in-time restoration to clone data to a new instance for testing or verification.

Prerequisites

The original instance is a standalone or replica set instance.

Usage notes

  • By default, the new instance runs the latest kernel version.

  • If you have upgraded the major version of the original instance, you cannot restore the backup data before the upgrade to the new instance.

  • The backup-point restoration can restore data only to the time when the full backup starts.

Billing

If you create an instance from a backup point, you are charged for the new instance. For more information, see Billable items.

Note

If you want to create a pay-as-you-go instance, make sure that you have sufficient balance within your account.

Procedure

  1. Go to the Replica Set Instances page. In the top navigation bar, select the region in which the instance resides. Then, find the instance and click the ID of the instance.

  2. In the left-side navigation pane of the instance details page, click Backup and Restoration.

  3. On the Full Backup tab, find the backup file that you want to use and then click Create Instance from Backup in the Actions column.

    Important

    If you have upgraded the major version of the original instance, you cannot restore the backup data before the upgrade to the new instance.

  4. In the Create Instance from Backup panel, select the databases that you want to restore.

    • All Databases: All databases in the original instance are restored.

    • Partial Databases: Only selected databases are restored.

      Note

      You can restore partial databases only in an instance that uses local disks. For more information, see Restore the databases of an instance.

  5. Click OK.

  6. On the Clone Instance page, configure the new instance and complete the payment. For more information about configuration items, see Create a standalone instance or Create a replica set instance.

    Note
    • You cannot change the values of the Region, Engine Version, Storage Engine, and Active-standby Nodes parameters on the Clone Instance page.

    • To make sure that the new instance has sufficient storage capacity for restoration, we recommend that you set the storage capacity of the new instance to a value that is larger than or equal to the storage capacity of the original instance.