Rollback and Backup

Last updated: 2020-07-02 15:49:18

    How do I perform daily auto backup and manual backup in TencentDB for MongoDB?

    TencentDB for MongoDB supports two backup modes: daily auto backup and manual backup. The backup data is retained for 7 days by default.

    • Auto backup
      An instance can be automatically backed up once a day. You can view details in Backup and Rollback on the instance details page in the TencentDB for MongoDB Console.
    • Manual backup
      In Backup and Rollback on the instance details page, click Manual Backup in the top-right corner, enter remarks in the pop-up box, and click "Submit" to complete manual backup.

    Can I perform rollback again if the instance is replaced after rollback?

    No. The original backup file is no longer applicable to the new instance, so you cannot perform rollback again. You should perform the replacement operation with caution.

    What determines the rollback time of a TencentDB for MongoDB instance?

    Rollback is based on the latest full backup image and oplog. The rollback time is subject to the amount of replayed oplogs.
    If the rollback is performed a long time after the full backup is completed, it will take more time to replay oplogs.

    After rollback of a TencentDB for MongoDB instance, what is the difference between a promotion operation and a replacement operation?

    Promotion is to promote the rolled-back temp instance to a formal instance, which has no mapping relationship with the original instance. By default, the temp instance has a validity period of 2 days.
    Replacement is to overwrite the current instance data with the temp instance data. After replacement, the backup file of the instance will be deleted, and the instance cannot be rolled back again. Please proceed with caution.

    Will the backup file be deleted if the TencentDB for MongoDB instance is replaced after rollback?

    As the original backup file is no longer applicable to the new instance, the backup file will be deleted during rollback.

    How do I back up and roll back a replica set instance in TencentDB for MongoDB?

    Replica set instances currently support instance-level and database/table-level backup and rollback.

    • Backup
      In the console, click Manual Backup on the instance details page or set auto backup on the backup and rollback page.
    • Rollback
      You need to enter a date to which you want to roll the instance back. You can enter any time point within the last 5 days, but you can only select a time between two backups (backup succeeds and oplog is not fully occupied). If there are no backups to satisfy this condition, please perform manual backup.

    How do I back up and roll back a sharded cluster instance in TencentDB for MongoDB?

    Sharded cluster instances currently support instance-level backup and rollback.

    • Backup
      In the console, click Manual Backup on the instance details page or set auto backup on the backup and rollback page.
    • Rollback
      The oplog space of an instance is a capped collection. When the collection space is used up, newly inserted elements will overwrite the initial header elements. To avoid backup and restoration failures caused by overwritten oplog space, please set a reasonable oplog space size based on your business conditions. If your business involves frequent write, deletion, and update operations, you can schedule multiple backups per day to prevent the oplogs between two backup time points from being overwritten. If the oplog space is overwritten, the data restoration time point may not be guaranteed.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help