Rollback and Backup

Last updated: 2020-02-25 18:42:49

PDF

How to operate daily automatic backup and manual backup of MongoDB?

Cloud database MongoDB supports two backup methods: daily automatic backup and manual backup. Backup data is retained for 7 days by default.

  • Auto Backup
    The instance can provide automatic backup once a day. You can find it in Tencent Cloud. MongoDB console View it in [Rollback and backup] on the instance details page.
  • Manual Backup
    In "Rollback and backup" on the instance details page, click "Manual backup" in the upper right corner, enter the backup comments in Pop-up window, and complete the manual backup after submission.

Is backup file download supported?

It is not supported for the time being.

After Rollback has carried on the replacement operation, is it possible to carry on Rollback again?

No, the original backup file after replacement is no longer applicable to the replaced instance, and Rollback cannot be performed again. Users must confirm before selecting the replacement operation.

What does MongoDB Rollback's time depend on?

Rollback is based on the most recent full backup of Image + oplog. Rollback's time depends on the amount of oplog playback.
If the full backup of point in time is a long time away from Rollback, it will take a long time for oplog playback.

After MongoDB Rollback, what is the difference between a regular operation and a replacement operation?

The transfer is to transform the temporary instance after Rollback into a brand-new instance to run, which does not have any corresponding relationship with the original instance. By default, a 2-day validity period is set for temporary instances. Please renew it in time.
Replacement is to overwrite the data of the current instance with temporary instance data. After replacement, the backup files of the instance will be deleted. Please proceed with caution before replacing Rollback again.

After the replacement operation of MongoDB Rollback, will the backup files be deleted?

After replacement, the original backup file is no longer applicable to the replaced instance, so the Rollback process deletes the backup file.

How does MongoDB complete the backup of replica set instances, Rollback?

Replica set instances currently support instance-level and Database table-level backups and Rollback.

  • Backup
    In Console Click "Manual backup" on the instance details page, or make automatic backup settings on the backup and Rollback page.
  • Rollback
    In the course of Rollback's operation, you need to enter the date that Rollback is required to arrive. Currently, Rollback is supported at any time within 5 days, but the premise is that you can only select point in time between two backups (successful and non-oplog full status) for Rollback. If you do not meet the backup, please perform one. Manual Backup .

How does MongoDB complete the backup of Sharding Cluster instance, Rollback?

Sharding Cluster instance currently supports instance-level backup and Rollback.

  • Backup
    In Console Click "Manual backup" on the instance details page, or make automatic backup settings on the backup and Rollback page.
  • Rollback
    The oplog space of the instance is a fixed collection (Capped Collection),. When the collection space is used up, the inserted element will overwrite the original header element. To avoid backup and Resume failure caused by overwriting of oplog space, please set the oplog space size reasonably according to the business details. When the business writes, deletes and updates frequently, to prevent the oplog between the two backups point in time from being overwritten, you can set multiple backups per day. The oplog space between the two backups of point in time is overwritten, which may not guarantee the data of Resume's point in time.