To prevent data loss or corruption caused by events such as system failures, you can back up data by using the backup feature of ApsaraDB for MongoDB. Such backup data can be used during data restoration.

Operation Solution Instance architecture Scenario
Back up one or more databases Configure automatic backup for an ApsaraDB for MongoDB instance
  • Standalone instances
  • Replica set instances
  • Sharded cluster instances
-
Manually back up an ApsaraDB for MongoDB instance
  • Standalone instances
  • Replica set instances
  • Sharded cluster instances
-
Download one or more backup files Download the physical backup data of a replica set instance
  • Replica set instances that run MongoDB 4.2 or earlier
  • Sharded cluster instances
Applicable to scenarios such as business testing or data analysis. You can download ApsaraDB for MongoDB backup files to your computer and restore the data to a self-managed database.
Restore backup data to one or more ApsaraDB for MongoDB instances Restore data to a new ApsaraDB for MongoDB instance Replica set instances that run MongoDB 4.2 or earlier Applicable to scenarios where one or more databases need to be quickly restored. For example, you can use this solution if you deleted a collection or document by mistake.
Restore data to a new ApsaraDB for MongoDB instance by point in time
  • Replica set instances
  • Sharded cluster instances
Notice Standalone instances do not support point-in-time data restoration to a new instance.
Applicable to scenarios where data of multiple databases in an instance or data of the entire instance needs to be restored to a specific point in time.
Create an instance from a backup
  • Standalone instances
  • Replica set instances
Applicable to scenarios where an entire instance needs to be restored but data timeliness is not a key requirement.
Restore data to the current ApsaraDB for MongoDB instance Three-node replica set instances -
Restore backup data to one or more self-managed databases Restore data of an ApsaraDB for MongoDB instance to self-managed MongoDB databases by using logical backup Replica set instances Applicable to scenarios such as business testing or data analysis.
Restore data of an ApsaraDB for MongoDB instance to a self-managed MongoDB database by using physical backup Replica set instances Applicable to scenarios such as business testing or data analysis.