ApsaraDB for MongoDB provides various backup and recovery solutions for different scenarios.
Solution overview
A hyphen (-) in the table indicates that there is no fixed scenario. You can choose a solution based on your needs and preferences.
Task | Implementation | Supported instance types | Scenarios |
Back up a database |
| - | |
| Suitable for scenarios such as operations and maintenance (O&M) during service downtime before a new version release in the game industry. You can create a manual backup before a business release. This lets you quickly roll back to the state before the change if issues occur. | ||
| Suitable for business scenarios with heavy write workloads. The main bottleneck for a point-in-time restore can be the incremental log replay phase. Enabling high-frequency backup can significantly reduce the restoration time. | ||
| Suitable for cross-region disaster recovery of backup data. If a region-level failure occurs, you can use the off-site backup data to restore your business. | ||
Restore backup data to an ApsaraDB for MongoDB instance | Restore one or more databases of an ApsaraDB for MongoDB instance to the source instance |
| Suitable for business scenarios that require fast data restoration for one or more databases, such as recovering an accidentally deleted collection or document. |
Restore one or more databases of an ApsaraDB for MongoDB instance to a new instance | Replica set instances with local disks that run MongoDB 4.2 or earlier | ||
Restore backup data to a new instance based on a point in time |
| Suitable for restoring multiple databases or an entire instance to a specific point in time. | |
Restore backup data to a new instance based on a backup point |
| Suitable for scenarios where you need to restore an entire instance and the data timeliness requirements are not high. | |
| Suitable for scenarios such as data monitoring or disaster recovery. You can use backup files to restore data to a new instance in the region where the off-site backup is stored. | ||
Restore backup data to a self-managed database |
| Suitable for scenarios such as business testing or data analytics. Note When you restore backup data to a self-managed database, you must first download the backup files. For more information, see Download a backup file. | |
Replica set instances with local disks that run MongoDB 4.2 or earlier |
FAQ
Related API operations
API | Description |
Queries the backup list of an ApsaraDB for MongoDB replica set instance. | |
Queries the backup list of an ApsaraDB for MongoDB sharded cluster instance. | |
Modifies the backup policy of an ApsaraDB for MongoDB instance. | |
Queries the backup policy of an ApsaraDB for MongoDB instance. | |
Restores data to a new ApsaraDB for MongoDB replica set instance. | |
Restores data to a new ApsaraDB for MongoDB sharded cluster instance. | |
Check if the instance meets the requirements for data restoration | Queries whether an ApsaraDB for MongoDB cloud disk instance meets the data restoration conditions. |