tencent cloud

Feedback

Rollback and Backup

Last updated: 2022-04-08 14:37:58

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

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

    • Automatic backup
      An instance can be automatically backed up once a day. You can view details on the Backup and Rollback tab on the management page in the TencentDB for MongoDB console by clicking the instance ID.
    • Manual backup
      On the Backup and Rollback tab, click Manual Backup in the top-right corner, enter remarks in the pop-up window, and click Submit to complete manual backup.

    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.

    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 TencentDB for MongoDB console, click an instance ID to enter the instance management page and click Manual Backup or set automatic backup on the Backup and Rollback tab.
    • Rollback
      You need to enter a date to which you want to roll the instance back. You can enter any time point within the past five 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, 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 TencentDB for MongoDB console, click an instance ID to enter the instance management page and click Manual Backup or set automatic backup on the Backup and Rollback tab.
    • 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, 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.

    How do I reduce jitters during instance backup?

    By default, TencentDB for MongoDB performs full and incremental backups for the cluster data at midnight and supports rollback to any time point within the past seven days. However, as the volume of the cluster data increases, the cluster may experience jitters regularly in the following aspects:

    1. The access latency increases.
    2. Slow logs increase.
    3. The CPU utilization increases.

    Analysis shows that the problem occurs when data backup is performed. Because the data of the entire instance needs to be backed up during physical and logical backups, the system resource load increases, which eventually affects the business query service.

    Solution: Hide the node during data backup to ensure that it is invisible to users. You can submit a ticket for assistance.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support