ApsaraDB RDS for PostgreSQL provides cross-region backup, allowing you to store data backups in a different region for disaster recovery or regulatory compliance.
-
For more information about the default backup feature for ApsaraDB RDS for PostgreSQL, see Back up an ApsaraDB RDS for PostgreSQL instance.
-
For more information about cross-region backup for ApsaraDB RDS for MySQL, see Enable cross-region backup for an ApsaraDB RDS for MySQL instance.
-
For more information about cross-region backup for ApsaraDB RDS for SQL Server, see Enable cross-region backup for an ApsaraDB RDS for SQL Server instance.
Differences between cross-region backup and default backup
|
Item |
Cross-region backup |
Default backup |
|
Enabled by default |
Disabled by default and must be enabled manually. |
Enabled by default. |
|
Backup storage location |
Backups are stored in a different region. |
Backups are stored in the same region as the instance. |
|
Data restoration |
You can restore data only to a new instance in the destination region. |
You can restore data to one of the following instances:
|
|
Backup retention |
Backups are retained based on the specified retention period, even after the source instance is released. |
By default, backups are retained for 7 days after the instance is released. |
Prerequisites
-
Your ApsaraDB RDS for PostgreSQL instance meets the following requirements:
-
For instances that use high-performance local disks: PostgreSQL 9.4 or 10 (High-availability Edition)
-
Instances that use cloud disks must run PostgreSQL 10 or later. Serverless instances are not supported.
-
-
If you are using the ApsaraDB RDS backup service for the first time, use your primary Alibaba Cloud account to authorize the AliyunServiceRoleForDBS service-linked role.
-
The instance must not be a new general-purpose instance type.
NoteWhile new general-purpose instance types provide enhanced elasticity, higher performance, and faster instance creation and modification, they do not yet fully support cross-region backup.
-
For an ApsaraDB RDS for PostgreSQL instance with cloud disk encryption enabled, you must activate your Alibaba Cloud account in the destination region before you enable cross-region backup. For instructions, see the FAQ section in this topic.
Billing
Cross-region backups for PostgreSQL instances incur the following fees:
-
Cross-region storage fees: USD 0.0002 per GB-hour.
-
Network traffic fees: For more information, see Network fees.
For large amounts of data, consider using a DBS Network Plan to offset network fees.
Usage notes
-
Cross-region backup does not affect default backups. Both types of backups can exist at the same time. A cross-region backup is a copy of a local backup in another region.
-
A cross-region backup is triggered after a default backup completes. The system then copies the default backup to the specified destination region.
-
If no valid backup set has been created in the last 24 hours when you enable cross-region backup, the system automatically triggers a new backup on the secondary instance.
Supported backup paths and regions
Due to network limitations, the cross-region backup feature is available only in specific regions. The following table describes the details.
|
Supported backup paths |
Data can be backed up between the Chinese mainland, China (Hong Kong), and international regions. The destination region for backups must be different from the source region. |
|
Supported regions |
|
Enable cross-region backup
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region in which your RDS instance resides.
-
Find the instance that you want to manage and in the Actions column, choose .
Note-
You can also go to the instance details page. In the left-side navigation pane, click Backup and Restoration. On the Backup Settings tab, find the Cross-region Backup Settings section and click Edit.
-
If the Cross-region Backup Settings option is not displayed, check whether your instance meets the Prerequisites.
-
-
Configure the following parameters, select the billing and compliance statements, and then click OK.
Parameter
Description
Cross-region Backup
The master switch for the feature. Select Enable.
Backup Region
The destination region where backup files are stored. Local backup files are automatically replicated to this region.
Cross-region Backup Retention Policy
The retention period of cross-region backup files. Valid values: 7 to 1825 days. The maximum retention period is 5 years.
NoteEven if the RDS instance expires or is released, its cross-region backup files are retained based on the specified retention period. You can view the unexpired backup files on the page of the instance.
Cross-region Log Backup Status
The switch for cross-region log backup. After you enable this feature, local log backup files are automatically replicated to an Object Storage Service (OSS) bucket in the destination region.
ImportantIf you cannot enable cross-region backup for an ApsaraDB RDS for PostgreSQL instance with cloud disk encryption enabled, your Alibaba Cloud account may not be activated in the destination region. To resolve this issue, see the FAQ section and then try again.
Modify cross-region backup settings
You can modify the cross-region backup policy, including the destination region and the retention period for backup sets.
-
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Backups. In the top navigation bar, select a region.
-
On the tab, find the instance that you want to manage and click Settings in the Actions column to modify the settings.
NoteIf the instance is released, you can modify only the retention period. Other options cannot be modified.
Disable cross-region backup
You can disable the cross-region backup feature at any time.
-
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Backups. In the top navigation bar, select a region.
-
On the tab, find the instance that you want to manage and click Settings in the Actions column.
-
Set Cross-region Backup Status to Disabled and set Cross-region Retention Period to 7 days.
NoteAfter you disable cross-region backup, no new backups are generated, and you are no longer charged for data transfer. However, existing backups are not immediately deleted. According to the backup policy, backups are retained for at least 7 days. You can set the cross-region backup retention period to 7 days. After 7 days, all backup files are automatically deleted, and you will no longer be charged for cross-region backup.
Download cross-region backups
You can download backup data from the destination region after a cross-region backup is complete.
-
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Backups. In the top navigation bar, select a region.
-
On the tab, find the target instance, and click the instance ID.
-
On the Data Backup and Log Backup tabs, find the backup that you want to download and click Download in the Actions column to download full and incremental backup data, respectively.
-
Read and select the related agreements, and then click Download.
NoteWhen you download backup files, inbound traffic over an internal network is free of charge, but outbound traffic over the Internet is charged. For more information, see Network fees.
References
-
After you complete a cross-region backup, you can restore data across regions to a new or existing instance in the destination region. For more information, see Restore data across regions.
-
You can also call the following API operations to perform cross-region backup tasks: