Overview

You can back up an ApsaraDB for MongoDB instance in either the automatic or manual mode, and restore it from backup files or to a point in time. This topic describes how to back up and restore data in apsaradb for MongoDB.

Description

Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
  • You can modify the configurations and data of instances including but not limited to Elastic Compute Service (ECS) and Relational Database Service (RDS) instances. Before the modification, we recommend that you create snapshots or enable RDS log backup.
  • If you have authorized or submitted sensitive information such as the logon account and password in the Alibaba Cloud Management Console, we recommend that you modify such information in a timely manner.

Backup files generated by apsaradb for MongoDB are stored in OSS, which does not occupy the storage space of apsaradb for MongoDB instances. You can enable automatic or manual backup of apsaradb for MongoDB data in the console based on your business needs. For more information, see configure automatic backup for an apsaradb for MongoDB instance or manually back up an apsaradb for MongoDB instance. The following content is the backup method and description of the instance.

Instructions if you choose automatic backup, only physical backup is supported.

Instance Backup method Impact
Standalone instance

Snapshot backup

Instructions the status of disk data at a specific point in time is retained.

Snapshot backup affects the I/O performance of standalone instances.
  • Replica set instance
  • Sharded cluster instance

Physical backup

Instructions physical Database files of an apsaradb for MongoDB instance are backed up.

Physical backup runs on a hidden node, which does not affect the read/write performance of the primary and secondary nodes. If your RDS instance has a large amount of data, backing up your RDS instance may require a long time.

Logical backup

Instructions use mongodump to back up the data of the entire database.

Documentation

Application scope

  • ApsaraDB for MongoDB