Cross-region backup

更新时间:
复制 MD 格式

ApsaraDB for MongoDB provides a cross-region backup feature to enhance data security. This feature automatically backs up your data to another region to meet data compliance and disaster recovery requirements.

Differences between cross-region backup and standard backup

Item

Cross-region backup

Standard backup

Default status

Disabled by default. You must enable it manually.

Enabled by default.

Backup storage

Backups are stored in a different region.

Backups are stored in the same region as the instance.

Data restoration

While the source instance is running, you can restore data to a new instance in the destination region.

  • While the source instance is running, you can restore data to a new instance in the source region.

  • After the source instance is released, you can use a valid backup set from the recycle bin to create a new instance in the source region.

Retention period

Its cross-region backups are retained based on the specified retention period even after the instance is released. If you no longer need these backups, modify the retention period before releasing the instance to avoid unwanted charges.

  • Before the instance is released, backup sets are retained based on the specified retention period.

  • After the instance is released, backup sets are retained based on the retention policy that was in effect at the time of release.

Prerequisites

  • Instance type: replica set or sharded cluster.

  • Storage type: ESSD.

Billing

Cross-region backup fees consist of storage fees and network traffic fees.

Billable item

Destination region

Unit price (CNY per GB per day)

Cross-region storage fee

China (Beijing), China (Hohhot), China (Ulanqab), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Chengdu), China (Qingdao), China (Guangzhou), and China (Zhangjiakou)

0.006

China (Hong Kong), US (Silicon Valley), US (Virginia), Singapore, Japan (Tokyo), Germany (Frankfurt), Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila), UK (London), South Korea (Seoul), and Thailand (Bangkok)

0.0072

Saudi Arabia (Riyadh)

0.00864

Network traffic fee

For more information about the billing of each region, see Network traffic fees.

Usage notes

  • You can back up data to any supported region except the one where the source instance is located. You can restore a backup set only to a new instance within its destination region.

  • Cross-region backup and standard backup are independent features that you can use simultaneously.

  • The cross-region backup feature replicates all manual backups, the first standard backup of the day, and the first high-frequency backup of the day.

  • You cannot download data or log backup sets created by the cross-region backup feature.

  • Cross-region backup supports only specific source regions and backup regions. For more information, see the following table.

    Supported regions for cross-region backup

    Area

    Supported regions

    China

    China (Beijing), China (Hohhot), China (Ulanqab), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Chengdu), China (Qingdao), China (Guangzhou), China (Zhangjiakou), and China (Hong Kong)

    Other countries and regions

    US (Silicon Valley), US (Virginia), Singapore, Japan (Tokyo), Germany (Frankfurt), Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila), UK (London), South Korea (Seoul), Thailand (Bangkok), and Saudi Arabia (Riyadh)

    Note

    For the latest information, refer to the options available in the console.

Enable cross-region backup

  1. Go to the Replica Set Instances or Sharded Cluster Instances page. In the upper-left corner of the page, select a resource group and a region. Then, click the ID of the target instance.

  2. In the left-side navigation pane, click Backup and Restoration.

  3. Click the Backup Settings tab.

  4. Click Edit. In the Backup Settings panel, select Cross-region Backup in the Advanced Features section and configure the following parameters.

    Parameter

    Description

    Source Region

    The region where the current instance resides. This parameter cannot be changed.

    Backup Region

    The region where the backup files are replicated and stored. This region cannot be the same as the source region.

    Retention Type

    The retention type for backups. Valid values: Retain for a Specific Period and Permanent.

    Cross-region Backup Retention Period (Days)

    The retention period for cross-region backups. Valid values: 3 to 1825 days.

    Note

    This parameter is required only when Cross-region backup retention type is set to Retain for a Specific Period.

    Day of Week

    Select the day or days of the week to replicate backups.

    For example, if you select Monday and Wednesday, the system replicates the backups created on those days to the destination region. The replicated backups include all manual backups, the first standard backup of the day, and the first high-frequency backup of the day.

    Cross-region Log Backup Status

    Indicates whether cross-region log backup is enabled. This setting is determined by the instance type.

    Note
    • Log backup is not supported for replica set instances.

    • Cross-region recovery for sharded cluster instances requires log backups. You cannot disable log backups for sharded cluster instances.

    Compliance Statement

    Read the compliance statement and select I have read and agreed to the compliance statement..

    Note

    For more information about other standard backup settings, see Automatically back up an ApsaraDB for MongoDB instance.

  5. Click OK.

Modify cross-region backup settings

  1. Go to the Replica Set Instances or Sharded Cluster Instances page. In the upper-left corner of the page, select a resource group and a region. Then, click the ID of the target instance.

  2. In the left-side navigation pane, click Backup and Restoration.

  3. Click the Backup Settings tab.

  4. Click Edit. In the Backup Settings panel, modify the parameters for Cross-region Backup in the Advanced Features section.

    Parameter

    Description

    Source Region

    The region where the current instance resides. This parameter cannot be changed.

    Backup Region

    The region where the backup files are replicated and stored. This region cannot be the same as the source region.

    Retention Type

    The retention type for backups. Valid values: Retain for a Specific Period and Permanent.

    Cross-region Backup Retention Period (Days)

    The retention period for cross-region backups. Valid values: 3 to 1825 days.

    Note

    This parameter is required only when Cross-region backup retention type is set to Retain for a Specific Period.

    Day of Week

    Select the day or days of the week to replicate backups.

    For example, if you select Monday and Wednesday, the system replicates the backups created on those days to the destination region. The replicated backups include all manual backups, the first standard backup of the day, and the first high-frequency backup of the day.

    Cross-region Log Backup Status

    Indicates whether cross-region log backup is enabled. This setting is determined by the instance type.

    Note
    • Log backup is not supported for replica set instances.

    • Cross-region recovery for sharded cluster instances requires log backups. You cannot disable log backups for sharded cluster instances.

    Compliance Statement

    Read the compliance statement and select I have read and agreed to the compliance statement..

  5. Click Confirm.

More operations

View backup sets

  1. Go to the Replica Set Instances or Sharded Cluster Instances page. In the upper-left corner of the page, select a resource group and a region. Then, click the ID of the target instance.

  2. In the left-side navigation pane, click Backup and Restoration.

  3. Click the Cross-region Backup tab.

  4. On the Cross-region Backup tab, you can view the cross-region backup sets for the current instance.

Disable cross-region backup

Important

After you disable cross-region backup, ApsaraDB for MongoDB stops creating new backups and no longer charges you for network traffic. However, existing backup sets are not deleted immediately and continue to incur storage fees.

To avoid extra charges, we recommend that you change the Day of Week to 3 days before you disable the feature. After three days, the cross-region backup sets are automatically deleted, and you will no longer be charged for cross-region backup storage. For instructions, see Modify cross-region backup settings.

  1. Go to the Replica Set Instances or Sharded Cluster Instances page. In the upper-left corner of the page, select a resource group and a region. Then, click the ID of the target instance.

  2. In the left-side navigation pane, click Backup and Restoration.

  3. Click the Backup Settings tab.

  4. Deselect the Cross-Region Backup check box.

  5. Click Confirm.

Cross-region restore

To restore data across regions to a new or existing instance in the destination region, see Restore the data of an ApsaraDB for MongoDB instance across regions.

Related APIs

API

Description

DescribeBackups

Queries the backups of an ApsaraDB for MongoDB replica set instance.

DescribeClusterBackups

Queries the backups of an ApsaraDB for MongoDB sharded cluster instance.

ModifyBackupPolicy

Modifies the backup policy of an ApsaraDB for MongoDB instance.

DescribeBackupPolicy

Queries the backup policy of an ApsaraDB for MongoDB instance.

CheckRecoveryCondition

Checks whether an ApsaraDB for MongoDB instance with ESSD storage is eligible for data recovery.