ApsaraDB for MongoDB provides multiple data restoration solutions for different scenarios.
Restore data to an ApsaraDB for MongoDB instance
Before you restore data to a new instance:
-
The new instance must have the same major database version as the source instance. Select a zone that supports this version — available zones vary by version (Usage notes).
-
The new instance must have at least as much storage as the source instance.
-
Backups created before a major version upgrade cannot be restored to the new version.
-
By default, a new instance created for data restoration runs the latest kernel minor version.
-
If your instance contains time series collections (MongoDB 5.0 or later), point-in-time recovery may encounter issues during the oplog replay phase.
|
Solution |
Instance architecture |
Restoration destination |
Restoration range |
Scenario |
|
Restore one or more databases of an ApsaraDB for MongoDB instance |
|
Original instance |
|
Recovers accidentally deleted collections or documents. |
|
Replica set instance that uses local disks and runs MongoDB 4.0 or 4.2 Note
Supported regions and other limits are listed in Usage notes. |
New instance |
|||
|
New instance |
Note
Partial restoration is supported only on local-disk instances. |
Suitable when data timeliness is not critical. |
|
|
Replica set instance |
New instance |
Note
Partial restoration is supported only on local-disk instances. |
Restores instance data to a specific point in time. |
|
|
Sharded cluster instance |
New instance |
All databases |
||
|
New instance |
All databases |
Restores a cross-region backup to a new instance in the backup's stored region for compliance or disaster recovery. |
Restore data to a self-managed database
To restore data to a self-managed database, first download the backup from your ApsaraDB for MongoDB instance (Download a backup file).
|
Solution |
Instance architecture |
Usage notes |
|
Always use a mongorestore version compatible with your MongoDB version — older versions may not support newer databases (mongorestore). |
|
|
Replica set instance that meets the following conditions:
|
None. |