Updated on 2023-11-21 GMT+08:00

Overview

GeminiDB Mongo API allows you to create backups for your instance to ensure data reliability. After an instance is deleted, the manual backup data is retained. Automated backup data is released together with instances. Backup data cannot be downloaded or exported.

Backup Methods

GeminiDB Mongo instances support automated and manual backups.

  • Automated backup

    You can click Modify Backup Policy on the GeminiDB console, and the system will automatically back up your instance data based on the time window and backup cycle you set in the backup policy and will store the data for the retention period you specified.

    Automated backups cannot be manually deleted. You can adjust their retention period by referring to Modifying an Automated Backup Policy, and backups that expire will be automatically deleted.

  • Manual backup

    A manual backup is a full backup of a DB instance and can be retained until you manually delete it. You can create a manual backup for your instance at any time to meet service requirements.

    Regularly backing up your database is recommended. If your database becomes faulty or data is corrupted, you can restore it from backups.

    Table 1 Backup methods and scenarios

    Backup Method

    Scenario

    Automated backup

    After you set a backup policy, the system automatically backs up your instance based on the policy. You can also modify the policy based on service requirements.

    Manual backup

    You can manually create full backups for your instance based on service requirements.

Backup Principles

GeminiDB Mongo supports only replica set instances.

Each replica set instance can contain one primary node and multiple secondary nodes. As shown in Figure 1, the GeminiDB Mongo replica set is backed up on the node with the minimum dictionary order ID. Data backup will consume CPU and memory resources of the node, so the CPU and memory usage may increase. Final backups will be compressed and stored in OBS, without occupying storage space of the instance.

Figure 1 Backup flowchart

Backup Storage

Backups are stored in OBS buckets to provide disaster recovery and save storage space.

After you purchase an instance, GeminiDB Mongo API will provide additional backup storage of the same size as you purchased. For example, if you purchase an instance of 100 GB, you will obtain additional backup storage of 100 GB free of charge. If the size of backup data does not exceed 100 GB, the backup data is stored on OBS free of charge. If the size of the backup data exceeds 100 GB, you will be charged based on the OBS billing rules.