This topic describes how to manually back up an ApsaraDB for MongoDB instance. ApsaraDB for MongoDB supports both automatic backup and manual backup. You can configure a backup policy for the system to automatically back up your ApsaraDB for MongoDB instance based on the backup cycle you specify.
- ApsaraDB for MongoDB stores its backup files in Object Storage Service (OSS) to reduce the storage space usage of ApsaraDB for MongoDB instances.
- Standalone instances only support snapshot backup, which decreases their I/O performance.
- Physical backup and logical backup run on the hidden nodes of replica set instances, and do not affect the performance of the primary and secondary nodes. Backing up a large volume of data may take a long time.
- After you upgrade the database engine version of your ApsaraDB for MongoDB instance, the backup files that were generated in the original version cannot be used to restore data in the new version.
- Snapshot backup: The status of disk data at a specific point in time is retained.
- Physical backup: Physical database files of an ApsaraDB for MongoDB instance are backed up.
- Logical backup: mongodump is used to logically back up each database.
- Log on to the ApsaraDB for MongoDB console.
- In the upper-left corner of the page, select the region where the target instance resides.
- In the left-side navigation pane, click Replica Set Instances or Sharding Instances.
- Find the target instance and click its ID.
- In the upper-right corner of the page that appears, click Backup Instance.
- In the dialog box that appears, specify Backup Method.
- If the instance is a standalone instance, you can only select Snapshot Backup.
- If the instance is a replica set or sharded cluster instance, you can select Logical Backup or Physical Backup.
- Click OK.