Create an on-demand backup of your ApsaraDB for MongoDB instance to protect your data at a specific point in time.
Prerequisites
Ensure you have created a standalone, replica set, or sharded cluster instance.
Usage notes
Compatibility
If you're running MongoDB earlier than 4.0 and plan to use physical backup, be aware of this limitation: backups may fail when your instance contains more than 10,000 collections and indexes combined.
Solution: Upgrade to MongoDB 4.0 or later before performing physical backups. See Upgrade the major database version for instructions.
After upgrading, you cannot use pre-upgrade backups to create new instances.
Backup storage
ApsaraDB for MongoDB stores all backups in Object Storage Service (OSS), so they don't consume your instance's storage space.
Backup methods
Snapshot Backup
Available for:
Standalone instances
Replica set instances (cloud disk, MongoDB 4.2 or later)
Sharded cluster instances (cloud disk, MongoDB 4.2 or later)
How it works: Captures your disk's exact state at a specific moment, enabling rapid restore (typically within minutes).
Snapshot backup uses I/O resources during the backup process.
Logical and Physical Backups
Available for:
Replica set instances (local disk, MongoDB 4.2 or earlier)
Sharded cluster instances (local disk, MongoDB 4.2 or earlier)
Logical Backup
Uses mongodump to record database operations. Restores data by replaying these operations.
Physical Backup
Copies raw database files directly. Faster backup and restore than logical backup.
Large datasets may take considerable time to back up.
Costs
ApsaraDB for MongoDB includes generous free backup storage quotas. You're only charged for backup storage that exceeds your free quota, calculated hourly using this formula: Hourly backup cost = (Total backup storage - Free quota) × Unit price.
View your current backup storage usage and free quota allocation:
Storage type | Free quota | View backup storage and free quota |
Cloud disk instances | 200% of your purchased storage capacity | View your current backup storage usage and free quota on the Basic Information page, under the Specification Information section. |
Local disk instances | 50% of your purchased storage capacity |
Backup storage pricing for usage beyond your free quota:
Storage type | Unit price of backup (USD per GB-day) |
Cloud disk-based instances | The unit price varies in different regions:
|
Local disk-based instances | The unit price varies in different regions:
|
For detailed pricing information, visit the ApsaraDB for MongoDB Pricing page.
Prices shown are for reference only. Actual billing rates are determined at purchase time and reflected in your bills.
Create a Manual Backup
Select your region and resource group in the upper-left corner, then click your instance ID.
In the Back Up Instance dialog:
Backup Method: Select your preferred method (shown based on your instance type).
Backup Retention Period: Choose how long to keep this backup:
Default: Uses the same retention as automatic backups.
Custom: Set a specific duration (7-730 days).
Permanent: Keeps the backup for the instance's lifetime.
NoteOnly cloud disk instances running MongoDB 4.2 or later support custom retention for manual backups.
Click OK.
The backup begins immediately. Refresh the page and go to the Backup and Restoration tab to view your backup.
FAQ
Related API
API Operation | Description |
Creates a manual backup of your instance |