

# Managing automated backups
<a name="USER_ManagingAutomatedBackups"></a>

This section shows how to manage automated backups for DB instances and Multi-AZ DB clusters.

**Topics**
+ [Backup window](#USER_WorkingWithAutomatedBackups.BackupWindow)
+ [Backup retention period](USER_WorkingWithAutomatedBackups.BackupRetention.md)
+ [Enabling automated backups](USER_WorkingWithAutomatedBackups.Enabling.md)
+ [Retaining automated backups](USER_WorkingWithAutomatedBackups.Retaining.md)
+ [Deleting retained automated backups](USER_WorkingWithAutomatedBackups-Deleting.md)
+ [Automated backups with unsupported MySQL storage engines](Overview.BackupDeviceRestrictions.md)
+ [Automated backups with unsupported MariaDB storage engines](Overview.BackupDeviceRestrictionsMariaDB.md)
+ [Replicating automated backups to another AWS Region](USER_ReplicateBackups.md)

## Backup window
<a name="USER_WorkingWithAutomatedBackups.BackupWindow"></a>

Automated backups occur daily during the preferred backup window. If the backup requires more time than allotted to the backup window, the backup continues after the window ends until it finishes. The backup window can't overlap with the weekly maintenance window for the DB instance or Multi-AZ DB cluster.

During the automatic backup window, storage I/O might be suspended briefly while the backup process initializes (typically under a few seconds). You might experience elevated latencies for a few minutes during backups for Multi-AZ deployments. For MariaDB, MySQL, Oracle, and PostgreSQL, I/O activity isn't suspended on your primary during backup for Multi-AZ deployments because the backup is taken from the standby. For SQL Server, I/O activity is suspended briefly during backup for both Single-AZ and Multi-AZ deployments because the backup is taken from the primary. For Db2, I/O activity is also suspended briefly during backup even though the backup is taken from the standby.

Automated backups might occasionally be skipped if the DB instance or cluster has a heavy workload at the time a backup is supposed to start. If a backup is skipped, you can still do a point-in-time-recovery (PITR), and a backup is still attempted during the next backup window. For more information on PITR, see [Restoring a DB instance to a specified time for Amazon RDS](USER_PIT.md).

If you don't specify a preferred backup window when you create the DB instance or Multi-AZ DB cluster, Amazon RDS assigns a default 30-minute backup window. This window is selected at random from an 8-hour block of time for each AWS Region. The following table lists the time blocks for each AWS Region from which the default backup windows are assigned.


****  
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ManagingAutomatedBackups.html)

# Backup retention period
<a name="USER_WorkingWithAutomatedBackups.BackupRetention"></a>

You can set the backup retention period when you create or restore a DB instance or Multi-AZ DB cluster. If you create a DB instance using the Amazon RDS API or the AWS CLI and if you don't set the backup retention period, the default backup retention period is one day. If you create a DB instance using the console, the default backup retention period is seven days.

After you create a DB instance or cluster, you can modify the backup retention period. You can set the backup retention period of a DB instance to between 0 and 35 days. Setting the backup retention period to 0 disables automated backups. For a Multi-AZ DB cluster, you can set the backup retention period to between 1 and 35 days. Manual snapshot limits (100 per Region) don't apply to automated backups.

During restore operations, you have the option to specify a backup retention period for your DB instance or Multi-AZ DB cluster. When you don't explicitly set this value, the restored database inherits the backup retention period from the source snapshot or instance. Note that this inheritance behavior is unique to restore operations—when creating a new database, the system applies default retention periods instead.

**Important**  
An outage occurs if you change the backup retention period of a DB instance from 0 to a nonzero value or from a nonzero value to 0.

RDS doesn't include time spent in the `stopped` state when the backup retention period is calculated. Automated backups aren't created while a DB instance or cluster is stopped. Backups can be retained longer than the backup retention period if a DB instance has been stopped. 

# Enabling automated backups
<a name="USER_WorkingWithAutomatedBackups.Enabling"></a>

If your DB instance doesn't have automated backups enabled, you can enable them at any time. You enable automated backups by setting the backup retention period to a positive nonzero value. When automated backups are turned on, your DB instance is taken offline and a backup is immediately created.

**Note**  
If you manage your backups in AWS Backup, you can't enable automated backups. For more information, see [Using AWS Backup to manage automated backups for Amazon RDS](AutomatedBackups.AWSBackup.md).

## Console
<a name="USER_WorkingWithAutomatedBackups.Enabling.CON"></a>

**To enable automated backups immediately**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. In the navigation pane, choose **Databases**, and then choose the DB instance or Multi-AZ DB cluster that you want to modify.

1. Choose **Modify**.

1. For **Backup retention period**, choose a positive nonzero value, for example three days.

1. Choose **Continue**.

1. Choose **Apply immediately**.

1. Choose **Modify DB instance** or **Modify cluster** to save your changes and enable automated backups.

## AWS CLI
<a name="USER_WorkingWithAutomatedBackups.Enabling.CLI"></a>

To enable automated backups, use the AWS CLI [modify-db-instance](https://docs.aws.amazon.com/cli/latest/reference/rds/modify-db-instance.html) or [modify-db-cluster](https://docs.aws.amazon.com/cli/latest/reference/rds/modify-db-cluster.html) command.

Include the following parameters:
+ `--db-instance-identifier` (or `--db-cluster-identifier` for a Multi-AZ DB cluster)
+ `--backup-retention-period`
+ `--apply-immediately` or `--no-apply-immediately`

In the following example, we enable automated backups by setting the backup retention period to three days. The changes are applied immediately.

**Example**  
For Linux, macOS, or Unix:  

```
aws rds modify-db-instance \
    --db-instance-identifier my_db_instance  \
    --backup-retention-period 3 \
    --apply-immediately
```
For Windows:  

```
aws rds modify-db-instance ^
    --db-instance-identifier my_db_instance  ^
    --backup-retention-period 3 ^
    --apply-immediately
```

## RDS API
<a name="USER_WorkingWithAutomatedBackups.Enabling.API"></a>

To enable automated backups, use the RDS API [ModifyDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBInstance.html) or [ModifyDBCluster](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBCluster.html) operation with the following required parameters:
+ `DBInstanceIdentifier` or `DBClusterIdentifier`
+ `BackupRetentionPeriod`

## Viewing automated backups
<a name="USER_WorkingWithAutomatedBackups.viewing"></a>

To view your automated backups, choose **Automated backups** in the navigation pane. To view individual snapshots associated with an automated backup, choose **Snapshots** in the navigation pane. Alternatively, you can describe individual snapshots associated with an automated backup. From there, you can restore a DB instance directly from one of those snapshots. 

Automated snapshot names follow the pattern `rds:<database-name>-yyyy-mm-dd-hh-mm`, with `yyyy-mm-dd-hh-mm` representing the date and time the snapshot was created.

To describe the automated backups for your existing DB instances using the AWS CLI, use one of the following commands:

```
aws rds describe-db-instance-automated-backups --db-instance-identifier DBInstanceIdentifier
```

or

```
aws rds describe-db-instance-automated-backups --dbi-resource-id DbiResourceId
```

To describe the retained automated backups for your existing DB instances using the RDS API, call the [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstanceAutomatedBackups.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstanceAutomatedBackups.html) action with one of the following parameters:
+ `DBInstanceIdentifier`
+ `DbiResourceId`

# Retaining automated backups
<a name="USER_WorkingWithAutomatedBackups.Retaining"></a>

**Note**  
You can only retain automated backups of DB instances, not Multi-AZ DB clusters.

When you delete a DB instance, you can choose to retain automated backups. Automated backups can be retained for a number of days equal to the backup retention period configured for the DB instance at the time when you delete it.

Retained automated backups contain system snapshots and transaction logs from a DB instance. They also include your DB instance properties like allocated storage and DB instance class, which are required to restore it to an active instance.

Retained automated backups and manual snapshots incur billing charges until they're deleted. For more information, see [Retention costs](#USER_WorkingWithAutomatedBackups.RetentionCosts).

You can retain automated backups for RDS instances running the Db2, MariaDB, MySQL, PostgreSQL, Oracle, and Microsoft SQL Server engines.

You can restore or remove retained automated backups using the AWS Management Console, RDS API, and AWS CLI.

**Topics**
+ [Retention period](#USER_WorkingWithAutomatedBackups.RetentionPeriods)
+ [Viewing retained backups](#USER_WorkingWithAutomatedBackups.viewing-retained)
+ [Restoration](#USER_WorkingWithAutomatedBackups.Restoration)
+ [Retention costs](#USER_WorkingWithAutomatedBackups.RetentionCosts)
+ [Limitations](#USER_WorkingWithAutomatedBackups.Limits)

## Retention period
<a name="USER_WorkingWithAutomatedBackups.RetentionPeriods"></a>

The system snapshots and transaction logs in a retained automated backup expire the same way that they expire for the source DB instance. Because there are no new snapshots or logs created for this instance, the retained automated backups eventually expire completely. Effectively, they live as long their last system snapshot would have done, based on the settings for retention period the source instance had when you deleted it. Retained automated backups are removed by the system after their last system snapshot expires.

You can remove a retained automated backup in the same way that you can delete a DB instance. You can remove retained automated backups using the console or the RDS API operation `DeleteDBInstanceAutomatedBackup`. 

Final snapshots are independent of retained automated backups. We strongly suggest that you take a final snapshot even if you retain automated backups because the retained automated backups eventually expire. The final snapshot doesn't expire.

## Viewing retained backups
<a name="USER_WorkingWithAutomatedBackups.viewing-retained"></a>

To view your retained automated backups, choose **Automated backups** in the navigation pane, then choose **Retained**. To view individual snapshots associated with a retained automated backup, choose **Snapshots** in the navigation pane. Alternatively, you can describe individual snapshots associated with a retained automated backup. From there, you can restore a DB instance directly from one of those snapshots.

To describe your retained automated backups using the AWS CLI, use the following command:

```
aws rds describe-db-instance-automated-backups --dbi-resource-id DbiResourceId
```

To describe your retained automated backups using the RDS API, call the [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstanceAutomatedBackups.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstanceAutomatedBackups.html) action with the `DbiResourceId` parameter.

## Restoration
<a name="USER_WorkingWithAutomatedBackups.Restoration"></a>

For information on restoring DB instances from automated backups, see [Restoring a DB instance to a specified time for Amazon RDS](USER_PIT.md).

## Retention costs
<a name="USER_WorkingWithAutomatedBackups.RetentionCosts"></a>

The cost of a retained automated backup is the cost of total storage of the system snapshots that are associated with it. There is no additional charge for transaction logs or instance metadata. All other pricing rules for backups apply to restorable instances. 

For example, suppose that your total allocated storage of running instances is 100 GB. Suppose also that you have 50 GB of manual snapshots plus 75 GB of system snapshots associated with a retained automated backup. In this case, you are charged only for the additional 25 GB of backup storage, like this: (50 GB \$1 75 GB) – 100 GB = 25 GB.

## Limitations
<a name="USER_WorkingWithAutomatedBackups.Limits"></a>

The following limitations apply to retained automated backups:
+ The maximum number of retained automated backups in one AWS Region is 40. It's not included in the DB instances quota. You can have 40 running DB instances and an additional 40 retained automated backups at the same time.
+ Retained automated backups don't contain information about parameters or option groups.
+ You can restore a deleted instance to a point in time that is within the retention period at the time of deletion.
+ You can't modify a retained automated backup. That's because it consists of system backups, transaction logs, and the DB instance properties that existed at the time that you deleted the source instance.

# Deleting retained automated backups
<a name="USER_WorkingWithAutomatedBackups-Deleting"></a>

You can delete retained automated backups when they are no longer needed.

## Console
<a name="USER_WorkingWithAutomatedBackups-Deleting.CON"></a>

**To delete a retained automated backup**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. In the navigation pane, choose **Automated backups**.

1. On the **Retained** tab, choose the retained automated backup that you want to delete.

1. For **Actions**, choose **Delete**.

1. On the confirmation page, enter **delete me** and choose **Delete**.

## AWS CLI
<a name="USER_WorkingWithAutomatedBackups-Deleting.CLI"></a>

You can delete a retained automated backup by using the AWS CLI command [delete-db-instance-automated-backup](https://docs.aws.amazon.com/cli/latest/reference/rds/delete-db-instance-automated-backup.html) with the following option:
+ `--dbi-resource-id` – The resource identifier for the source DB instance.

  You can find the resource identifier for the source DB instance of a retained automated backup by running the AWS CLI command [describe-db-instance-automated-backups](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instance-automated-backups.html).

**Example**  
The following example deletes the retained automated backup with source DB instance resource identifier `db-123ABCEXAMPLE`.   
For Linux, macOS, or Unix:  

```
1. aws rds delete-db-instance-automated-backup \
2.     --dbi-resource-id db-123ABCEXAMPLE
```
For Windows:  

```
1. aws rds delete-db-instance-automated-backup ^
2.     --dbi-resource-id db-123ABCEXAMPLE
```

## RDS API
<a name="USER_WorkingWithAutomatedBackups-Deleting.API"></a>

You can delete a retained automated backup by using the Amazon RDS API operation [DeleteDBInstanceAutomatedBackup](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DeleteDBInstanceAutomatedBackup.html) with the following parameter:
+ `DbiResourceId` – The resource identifier for the source DB instance.

  You can find the resource identifier for the source DB instance of a retained automated backup using the Amazon RDS API operation [DescribeDBInstanceAutomatedBackups](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstanceAutomatedBackups.html).

## Disabling automated backups
<a name="USER_WorkingWithAutomatedBackups.Disabling"></a>

You might want to temporarily disable automated backups in certain situations, for example while loading large amounts of data.

**Important**  
We highly discourage disabling automated backups because it disables point-in-time recovery. Disabling automatic backups for a DB instance or Multi-AZ DB cluster deletes all existing automated backups for the database. If you disable and then re-enable automated backups, you can restore starting only from the time you re-enabled automated backups. 

### Console
<a name="USER_WorkingWithAutomatedBackups.Disabling.CON"></a>

**To disable automated backups immediately**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. In the navigation pane, choose **Databases**, and then choose the DB instance or Multi-AZ DB cluster that you want to modify.

1. Choose **Modify**.

1. For **Backup retention period**, choose **0 days**. 

1. Choose **Continue**.

1. Choose **Apply immediately**.

1. Choose **Modify DB instance** or **Modify cluster** to save your changes and disable automated backups.

### AWS CLI
<a name="USER_WorkingWithAutomatedBackups.Disabling.CLI"></a>

To disable automated backups immediately, use the [modify-db-instance](https://docs.aws.amazon.com/cli/latest/reference/rds/modify-db-instance.html) or [modify-db-cluster](https://docs.aws.amazon.com/cli/latest/reference/rds/modify-db-cluster.html) command and set the backup retention period to 0 with `--apply-immediately`.

**Example**  
The following example immediately disables automatic backups on a Multi-AZ DB cluster.  
For Linux, macOS, or Unix:  

```
aws rds modify-db-cluster \
    --db-cluster-identifier mydbcluster \
    --backup-retention-period 0 \
    --apply-immediately
```
For Windows:  

```
aws rds modify-db-cluster ^
    --db-cluster-identifier mydbcluster ^
    --backup-retention-period 0 ^
    --apply-immediately
```

To know when the modification is in effect, call `describe-db-instances` for the DB instance (or `describe-db-clusters` for a Multi-AZ DB cluster) until the value for backup retention period is 0 and `mydbcluster` status is available.

```
aws rds describe-db-clusters --db-cluster-identifier mydcluster
```

### RDS API
<a name="USER_WorkingWithAutomatedBackups.Disabling.API"></a>

To disable automated backups immediately, call the [ModifyDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBInstance.html) or [ModifyDBCluster](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBCluster.html) operation with the following parameters: 
+ `DBInstanceIdentifier = mydbinstance` (or `DBClusterIdentifier = mydbcluster`)
+ `BackupRetentionPeriod = 0`

**Example**  

```
https://rds.amazonaws.com/
    ?Action=ModifyDBInstance
    &DBInstanceIdentifier=mydbinstance
    &BackupRetentionPeriod=0
    &SignatureVersion=2
    &SignatureMethod=HmacSHA256
    &Timestamp=2009-10-14T17%3A48%3A21.746Z
    &AWSAccessKeyId=<&AWS; Access Key ID>
    &Signature=<Signature>
```

# Automated backups with unsupported MySQL storage engines
<a name="Overview.BackupDeviceRestrictions"></a>

For the MySQL DB engine, automated backups are only supported for the InnoDB storage engine. Using these features with other MySQL storage engines, including MyISAM, can lead to unreliable behavior when you're restoring from backups. Specifically, since storage engines like MyISAM don't support reliable crash recovery, your tables can be corrupted in the event of a crash. For this reason, we encourage you to use the InnoDB storage engine. 
+ To convert existing MyISAM tables to InnoDB tables, you can use the `ALTER TABLE` command, for example: `ALTER TABLE table_name ENGINE=innodb, ALGORITHM=COPY;` 
+ If you choose to use MyISAM, you can attempt to manually repair tables that become damaged after a crash by using the `REPAIR` command. For more information, see [REPAIR TABLE statement](https://dev.mysql.com/doc/refman/8.0/en/repair-table.html) in the MySQL documentation. However, as noted in the MySQL documentation, there is a good chance that you might not be able to recover all your data. 
+ If you want to take a snapshot of your MyISAM tables before restoring, follow these steps: 

  1. Stop all activity to your MyISAM tables (that is, close all sessions). 

     You can close all sessions by calling the [mysql.rds\$1kill](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.MySQL.CommonDBATasks.html) command for each process that is returned from the `SHOW FULL PROCESSLIST` command. 

  1. Lock and flush each of your MyISAM tables. For example, the following commands lock and flush two tables named `myisam_table1` and `myisam_table2`: 

     ```
     mysql> FLUSH TABLES myisam_table, myisam_table2 WITH READ LOCK;
     ```

  1. Create a snapshot of your DB instance or Multi-AZ DB cluster. When the snapshot has completed, release the locks and resume activity on the MyISAM tables. You can release the locks on your tables using the following command: 

     ```
     mysql> UNLOCK TABLES;
     ```

  These steps force MyISAM to flush data stored in memory to disk, which ensures a clean start when you restore from a DB snapshot. For more information on creating a DB snapshot, see [Creating a DB snapshot for a Single-AZ DB instance for Amazon RDS](USER_CreateSnapshot.md). 

# Automated backups with unsupported MariaDB storage engines
<a name="Overview.BackupDeviceRestrictionsMariaDB"></a>

For the MariaDB DB engine, automated backups are only supported with the InnoDB storage engine. Using these features with other MariaDB storage engines, including Aria, can lead to unreliable behavior when you're restoring from backups. Even though Aria is a crash-resistant alternative to MyISAM, your tables can still be corrupted in the event of a crash. For this reason, we encourage you to use the InnoDB storage engine. 
+ To convert existing Aria tables to InnoDB tables, you can use the `ALTER TABLE` command. For example: `ALTER TABLE table_name ENGINE=innodb, ALGORITHM=COPY;` 
+ If you choose to use Aria, you can attempt to manually repair tables that become damaged after a crash by using the `REPAIR TABLE` command. For more information, see [http://mariadb.com/kb/en/mariadb/repair-table/](http://mariadb.com/kb/en/mariadb/repair-table/). 
+ If you want to take a snapshot of your Aria tables before restoring, follow these steps: 

  1. Stop all activity to your Aria tables (that is, close all sessions).

  1. Lock and flush each of your Aria tables.

  1. Create a snapshot of your DB instance or Multi-AZ DB cluster. When the snapshot has completed, release the locks and resume activity on the Aria tables. These steps force Aria to flush data stored in memory to disk, thereby ensuring a clean start when you restore from a DB snapshot. 

# Replicating automated backups to another AWS Region
<a name="USER_ReplicateBackups"></a>

For added disaster recovery capability, you can configure your Amazon RDS database instance to replicate snapshots and transaction logs to a destination AWS Region of your choice. When backup replication is configured for a DB instance, RDS initiates a cross-Region copy of all snapshots and transaction logs as soon as they are ready on the DB instance.

DB snapshot copy charges apply to the data transfer. After the DB snapshot is copied, standard charges apply to storage in the destination Region. For more details, see [RDS Pricing](https://aws.amazon.com/rds/oracle/pricing/).

For an example of using backup replication, see the AWS online tech talk [Managed Disaster Recovery with Amazon RDS for Oracle Cross-Region Automated Backups](https://pages.awscloud.com/Managed-Disaster-Recovery-with-Amazon-RDS-for-Oracle-Cross-Region-Automated-Backups_2021_0908-DAT_OD.html).

**Note**  
Automated backup replication isn't supported for Multi-AZ DB clusters. However, it is supported for Multi-AZ DB instance deployments. For more information about limitations for automated backups, see [Quotas and constraints for Amazon RDS](CHAP_Limits.md).

For information about configuring and managing automated backups for Amazon RDS, see the following topics.

**Topics**
+ [Enabling cross-Region automated backups for Amazon RDS](AutomatedBackups.Replicating.Enable.md)
+ [Finding information about replicated backups for Amazon RDS](AutomatedBackups.Replicating.Describe.md)
+ [Restoring to a specified time from a replicated backup for Amazon RDS](AutomatedBackups.PiTR.md)
+ [Stopping automated backup replication for Amazon RDS](AutomatedBackups.StopReplicating.md)
+ [Deleting replicated backups for Amazon RDS](AutomatedBackups.Delete.md)
+ [Troubleshooting stopped cross-Region automated backups](AutomatedXREGBackups.Troubleshooting.md)

## Multi-AZ deployment support
<a name="USER_ReplicateBackups.Multi-AZ-deployments"></a>

Cross-Region automated backup replication is supported for Multi-AZ DB instance deployments for the following engines:
+ RDS for Db2
+ RDS for MariaDB
+ RDS for MySQL
+ RDS for Oracle
+ RDS for PostgreSQL
+ RDS for SQL Server

Cross-Region automated backup replication isn't supported for Multi-AZ DB clusters.

## Region and version availability
<a name="USER_ReplicateBackups.RegionVersionAvailability"></a>

Feature availability and support varies across specific versions of each database engine, and across AWS Regions. For more information on version and Region availability with cross-Region automated backups, see [Supported Regions and DB engines for cross-Region automated backups in Amazon RDS](Concepts.RDS_Fea_Regions_DB-eng.Feature.CrossRegionAutomatedBackups.md). 

## Source and destination AWS Region support
<a name="USER_ReplicateBackups.Regions"></a>

Backup replication is supported between the following AWS Regions.


****  

| Source Region | Destination Regions available | 
| --- | --- | 
| Africa (Cape Town) |  Europe (Frankfurt), Europe (Ireland), Europe (London)  | 
| Asia Pacific (Hong Kong) | Asia Pacific (Singapore), Asia Pacific (Tokyo) | 
| Asia Pacific (Hyderabad) | Asia Pacific (Mumbai) | 
| Asia Pacific (Jakarta) | Asia Pacific (Malaysia), Asia Pacific (Singapore) | 
| Asia Pacific (Melbourne) | Asia Pacific (Sydney) | 
| Asia Pacific (Malaysia) | Asia Pacific (Singapore) | 
| Asia Pacific (Mumbai) |  Asia Pacific (Hyderabad), Asia Pacific (Singapore) US East (N. Virginia), US East (Ohio), US West (Oregon)  | 
| Asia Pacific (Osaka) | Asia Pacific (Tokyo) | 
| Asia Pacific (Seoul) |  Asia Pacific (Singapore), Asia Pacific (Tokyo) US East (N. Virginia), US East (Ohio), US West (Oregon)  | 
| Asia Pacific (Singapore) |  Asia Pacific (Hong Kong), Asia Pacific (Malaysia), Asia Pacific (Mumbai), Asia Pacific (Seoul), Asia Pacific (Sydney), Asia Pacific (Tokyo) US East (N. Virginia), US East (Ohio), US West (Oregon)  | 
| Asia Pacific (Sydney) |  Asia Pacific (Melbourne), Asia Pacific (Singapore) US East (N. Virginia), US West (N. California), US West (Oregon)  | 
| Asia Pacific (Tokyo) |  Asia Pacific (Hong Kong), Asia Pacific (Osaka), Asia Pacific (Seoul), Asia Pacific (Singapore) US East (N. Virginia), US East (Ohio), US West (Oregon)  | 
| Canada (Central) |  Canada West (Calgary) Europe (Ireland) US East (N. Virginia), US East (Ohio), US West (N. California), US West (Oregon)  | 
| Canada West (Calgary) | Canada (Central) | 
| China (Beijing) | China (Ningxia) | 
| China (Ningxia) | China (Beijing) | 
| Europe (Frankfurt) |  Africa (Cape Town) Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), Europe (Zurich) US East (N. Virginia), US East (Ohio), US West (Oregon)  | 
| Europe (Ireland) |  Africa (Cape Town) Canada (Central) Europe (Frankfurt), Europe (London), Europe (Paris), Europe (Stockholm), Europe (Zurich) US East (N. Virginia), US East (Ohio), US West (N. California), US West (Oregon)  | 
| Europe (London) |  Africa (Cape Town) Europe (Frankfurt), Europe (Ireland), Europe (Paris), Europe (Stockholm) US East (N. Virginia)  | 
| Europe (Milan) |  Europe (Frankfurt)  | 
| Europe (Paris) |  Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Stockholm) US East (N. Virginia)  | 
| Europe (Spain) |  Europe (Ireland), Europe (Paris)  | 
| Europe (Stockholm) |  Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris) US East (N. Virginia)  | 
| Europe (Zurich) | Europe (Frankfurt), Europe (Ireland) | 
| Israel (Tel Aviv) | Europe (Ireland) | 
| Middle East (UAE) | Europe (Frankfurt) | 
| South America (São Paulo) | US East (N. Virginia), US East (Ohio) | 
| AWS GovCloud (US-East) | AWS GovCloud (US-West) | 
| AWS GovCloud (US-West) | AWS GovCloud (US-East) | 
| US East (N. Virginia) |  Asia Pacific (Mumbai), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo) Canada (Central) Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm) South America (São Paulo) US East (Ohio), US West (N. California), US West (Oregon)  | 
| US East (Ohio) |  Asia Pacific (Mumbai), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Tokyo) Canada (Central) Europe (Frankfurt), Europe (Ireland) South America (São Paulo) US East (N. Virginia), US West (N. California), US West (Oregon)  | 
| US West (N. California) |  Asia Pacific (Sydney) Canada (Central) Europe (Ireland) US East (N. Virginia), US East (Ohio), US West (Oregon)  | 
| US West (Oregon) |  Asia Pacific (Mumbai), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo) Canada (Central) Europe (Frankfurt), Europe (Ireland) US East (N. Virginia), US East (Ohio), US West (N. California)  | 

You can also use the `describe-source-regions` AWS CLI command to find out which AWS Regions can replicate to each other. For more information, see [Finding information about replicated backups for Amazon RDS](AutomatedBackups.Replicating.Describe.md).

## Limitations
<a name="USER_ReplicateBackups.Limitations"></a>

Following are limitations for cross–Region automated backups for Amazon RDS.
+ Automated backup replication isn't supported for Multi-AZ DB clusters.
+ By default, you can have up to 20 cross–Region automated backups per AWS account.

# Enabling cross-Region automated backups for Amazon RDS
<a name="AutomatedBackups.Replicating.Enable"></a>

You can enable backup replication on new or existing DB instances using the Amazon RDS console. You can also use the `start-db-instance-automated-backups-replication` AWS CLI command or the `StartDBInstanceAutomatedBackupsReplication` RDS API operation. You can replicate up to 20 backups to each destination AWS Region for each AWS account.

**Note**  
To be able to replicate automated backups, make sure to enable them. For more information, see [Enabling automated backups](USER_WorkingWithAutomatedBackups.Enabling.md).

## Console
<a name="AutomatedBackups.Replicating.Enable.Console"></a>

You can enable backup replication for a new or existing DB instance:
+ For a new DB instance, enable it when you launch the instance. For more information, see [Settings for DB instances](USER_CreateDBInstance.Settings.md).
+ For an existing DB instance, use the following procedure.

**To enable backup replication for an existing DB instance**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. In the navigation pane, choose **Automated backups**.

1. On the **Current Region** tab, choose the DB instance for which you want to enable backup replication.

1. For **Actions**, choose **Manage cross-Region replication**.

1. Under **Backup replication**, choose **Enable replication to another AWS Region**.

1. Choose the **Destination Region**.

1. Choose the **Replicated backup retention period**.

1. If you've enabled encryption on the source DB instance, choose the **AWS KMS key** for encrypting the backups or enter a key ARN.

1. Choose **Save**.

In the source Region, replicated backups are listed on the **Current Region** tab of the **Automated backups** page. In the destination Region, replicated backups are listed on the **Replicated backups** tab of the **Automated backups** page.

## AWS CLI
<a name="AutomatedBackups.Replicating.Enable.CLI"></a>

Enable backup replication by using the [https://docs.aws.amazon.com/cli/latest/reference/rds/start-db-instance-automated-backups-replication.html](https://docs.aws.amazon.com/cli/latest/reference/rds/start-db-instance-automated-backups-replication.html) AWS CLI command.

The following CLI example replicates automated backups from a DB instance in the US West (Oregon) Region to the US East (N. Virginia) Region. It also encrypts the replicated backups, using an AWS KMS key in the destination Region.

**To enable backup replication**
+ Run one of the following commands.

  For Linux, macOS, or Unix:

  ```
  aws rds start-db-instance-automated-backups-replication \
  --region us-east-1 \
  --source-db-instance-arn "arn:aws:rds:us-west-2:123456789012:db:mydatabase" \
  --kms-key-id "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE" \
  --backup-retention-period 7
  ```

  For Windows:

  ```
  aws rds start-db-instance-automated-backups-replication ^
  --region us-east-1 ^
  --source-db-instance-arn "arn:aws:rds:us-west-2:123456789012:db:mydatabase" ^
  --kms-key-id "arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE" ^
  --backup-retention-period 7
  ```

  The `--source-region` option is required when you encrypt backups between the AWS GovCloud (US-East) and AWS GovCloud (US-West) Regions. For `--source-region`, specify the AWS Region of the source DB instance.

  If `--source-region` isn't specified, make sure to specify a `--pre-signed-url` value. A *presigned URL* is a URL that contains a Signature Version 4 signed request for the `start-db-instance-automated-backups-replication` command that is called in the source AWS Region. To learn more about the `pre-signed-url` option, see [ start-db-instance-automated-backups-replication](https://docs.aws.amazon.com/cli/latest/reference/rds/start-db-instance-automated-backups-replication.html) in the *AWS CLI Command Reference*.

## RDS API
<a name="AutomatedBackups.Replicating.Enable.API"></a>

Enable backup replication by using the [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_StartDBInstanceAutomatedBackupsReplication.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_StartDBInstanceAutomatedBackupsReplication.html) RDS API operation with the following parameters:
+ `Region` (if you aren't calling the API operation from the destination Region)
+ `SourceDBInstanceArn`
+ `BackupRetentionPeriod`
+ `KmsKeyId` (optional)
+ `PreSignedUrl` (required if you use `KmsKeyId`)

**Note**  
If you encrypt the backups, you must also include a presigned URL. For more information on presigned URLs, see [Authenticating Requests: Using Query Parameters (AWS Signature Version 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) in the *Amazon Simple Storage Service API Reference* and [Signature Version 4 signing process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) in the *AWS General Reference*.

# Finding information about replicated backups for Amazon RDS
<a name="AutomatedBackups.Replicating.Describe"></a>

You can use the following CLI commands to find information about replicated backups:
+ [https://docs.aws.amazon.com/cli/latest/reference/rds/describe-source-regions.html](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-source-regions.html)
+ [https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instances.html](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instances.html)
+ [https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instance-automated-backups.html](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instance-automated-backups.html)

The following `describe-source-regions` example lists the source AWS Regions from which automated backups can be replicated to the US West (Oregon) destination Region.

**To show information about source Regions**
+ Run the following command.

  ```
  aws rds describe-source-regions --region us-west-2
  ```

The output shows that backups can be replicated from US East (N. Virginia), but not from US East (Ohio) or US West (N. California), into US West (Oregon).

```
{
    "SourceRegions": [
        ...
        {
            "RegionName": "us-east-1",
            "Endpoint": "https://rds.us-east-1.amazonaws.com",
            "Status": "available",
            "SupportsDBInstanceAutomatedBackupsReplication": true
        },
        {
            "RegionName": "us-east-2",
            "Endpoint": "https://rds.us-east-2.amazonaws.com",
            "Status": "available",
            "SupportsDBInstanceAutomatedBackupsReplication": false
        },
            "RegionName": "us-west-1",
            "Endpoint": "https://rds.us-west-1.amazonaws.com",
            "Status": "available",
            "SupportsDBInstanceAutomatedBackupsReplication": false
        }
    ]
}
```

The following `describe-db-instances` example shows the automated backups for a DB instance.

**To show the replicated backups for a DB instance**
+ Run one of the following commands.

  For Linux, macOS, or Unix:

  ```
  aws rds describe-db-instances \
  --db-instance-identifier mydatabase
  ```

  For Windows:

  ```
  aws rds describe-db-instances ^
  --db-instance-identifier mydatabase
  ```

The output includes the replicated backups.

```
{
    "DBInstances": [
        {
            "StorageEncrypted": false,
            "Endpoint": {
                "HostedZoneId": "Z1PVIF0B656C1W",
                "Port": 1521,
            ...

            "BackupRetentionPeriod": 7,
            "DBInstanceAutomatedBackupsReplications": [{"DBInstanceAutomatedBackupsArn": "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE"}]
        }
    ]
}
```

The following `describe-db-instance-automated-backups` example shows the automated backups for a DB instance.

**To show automated backups for a DB instance**
+ Run one of the following commands.

  For Linux, macOS, or Unix:

  ```
  aws rds describe-db-instance-automated-backups \
  --db-instance-identifier mydatabase
  ```

  For Windows:

  ```
  aws rds describe-db-instance-automated-backups ^
  --db-instance-identifier mydatabase
  ```

The output shows the source DB instance and automated backups in US West (Oregon), with backups replicated to US East (N. Virginia).

```
{
    "DBInstanceAutomatedBackups": [
        {
            "DBInstanceArn": "arn:aws:rds:us-west-2:868710585169:db:mydatabase",
            "DbiResourceId": "db-L2IJCEXJP7XQ7HOJ4SIEXAMPLE",
            "DBInstanceAutomatedBackupsArn": "arn:aws:rds:us-west-2:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE",
            "BackupRetentionPeriod": 7,
            "DBInstanceAutomatedBackupsReplications": [{"DBInstanceAutomatedBackupsArn": "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE"}]
            "Region": "us-west-2",
            "DBInstanceIdentifier": "mydatabase",
            "RestoreWindow": {
                "EarliestTime": "2020-10-26T01:09:07Z",
                "LatestTime": "2020-10-31T19:09:53Z",
            }
            ...
        }
    ]
}
```

The following `describe-db-instance-automated-backups` example uses the `--db-instance-automated-backups-arn` option to show the replicated backups in the destination Region.

**To show replicated backups**
+ Run one of the following commands.

  For Linux, macOS, or Unix:

  ```
  aws rds describe-db-instance-automated-backups \
  --db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE"
  ```

  For Windows:

  ```
  aws rds describe-db-instance-automated-backups ^
  --db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE"
  ```

The output shows the source DB instance in US West (Oregon), with replicated backups in US East (N. Virginia).

```
{
    "DBInstanceAutomatedBackups": [
        {
            "DBInstanceArn": "arn:aws:rds:us-west-2:868710585169:db:mydatabase",
            "DbiResourceId": "db-L2IJCEXJP7XQ7HOJ4SIEXAMPLE",
            "DBInstanceAutomatedBackupsArn": "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE",
            "Region": "us-west-2",
            "DBInstanceIdentifier": "mydatabase",
            "RestoreWindow": {
                "EarliestTime": "2020-10-26T01:09:07Z",
                "LatestTime": "2020-10-31T19:01:23Z"
            },
            "AllocatedStorage": 50,
            "BackupRetentionPeriod": 7,
            "Status": "replicating",
            "Port": 1521,
            ...
        }
    ]
}
```

# Restoring to a specified time from a replicated backup for Amazon RDS
<a name="AutomatedBackups.PiTR"></a>

You can restore a DB instance to a specific point in time from a replicated backup using the Amazon RDS console. You can also use the `restore-db-instance-to-point-in-time` AWS CLI command or the `RestoreDBInstanceToPointInTime` RDS API operation.

For general information on point-in-time recovery (PITR), see [Restoring a DB instance to a specified time for Amazon RDS](USER_PIT.md).

**Note**  
Note the following DB engine restrictions when automated backups are replicated across AWS Regions:  
On RDS for SQL Server, option groups aren't copied.
On RDS for Oracle, the following options aren't copied: `NATIVE_NETWORK_ENCRYPTION`, `OEM`, `OEM_AGENT`, and `SSL`.
If you've associated a custom option group with your DB instance, you can re-create that option group in the destination Region. Then restore the DB instance in the destination Region and associate the custom option group with it. For more information, see [Working with option groups](USER_WorkingWithOptionGroups.md).

## Console
<a name="AutomatedBackups.PiTR.Console"></a>

**To restore a DB instance to a specified time from a replicated backup**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. Choose the destination Region (where backups are replicated to) from the Region selector.

1. In the navigation pane, choose **Automated backups**.

1. On the **Replicated backups** tab, choose the DB instance that you want to restore.

1. For **Actions**, choose **Restore to point in time**.

1. Choose **Latest restorable time** to restore to the latest possible time, or choose **Custom** to choose a time.

   If you chose **Custom**, enter the date and time that you want to restore the instance to.
**Note**  
Times are shown in your local time zone, which is indicated by an offset from Coordinated Universal Time (UTC). For example, UTC-5 is Eastern Standard Time/Central Daylight Time.

1. For **DB instance identifier**, enter the name of the target restored DB instance.

1. (Optional) Choose other options as needed, such as enabling autoscaling.

1. Choose **Restore to point in time**.

## AWS CLI
<a name="AutomatedBackups.PiTR.CLI"></a>

Use the [https://docs.aws.amazon.com/cli/latest/reference/rds/restore-db-instance-to-point-in-time.html](https://docs.aws.amazon.com/cli/latest/reference/rds/restore-db-instance-to-point-in-time.html) AWS CLI command to create a new DB instance.

**To restore a DB instance to a specified time from a replicated backup**
+ Run one of the following commands.

  For Linux, macOS, or Unix:

  ```
  1. aws rds restore-db-instance-to-point-in-time \
  2.     --source-db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE" \
  3.     --target-db-instance-identifier mytargetdbinstance \
  4.     --restore-time 2020-10-14T23:45:00.000Z
  ```

  For Windows:

  ```
  1. aws rds restore-db-instance-to-point-in-time ^
  2.     --source-db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE" ^
  3.     --target-db-instance-identifier mytargetdbinstance ^
  4.     --restore-time 2020-10-14T23:45:00.000Z
  ```

## RDS API
<a name="AutomatedBackups.PiTR.API"></a>

To restore a DB instance to a specified time, call the [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBInstanceToPointInTime.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBInstanceToPointInTime.html) Amazon RDS API operation with the following parameters:
+ `SourceDBInstanceAutomatedBackupsArn`
+ `TargetDBInstanceIdentifier`
+ `RestoreTime`

# Stopping automated backup replication for Amazon RDS
<a name="AutomatedBackups.StopReplicating"></a>

You can stop backup replication for DB instances using the Amazon RDS console. You can also use the `stop-db-instance-automated-backups-replication` AWS CLI command or the `StopDBInstanceAutomatedBackupsReplication` RDS API operation.

Replicated backups are retained, subject to the backup retention period set when they were created.

## Console
<a name="AutomatedBackups.StopReplicating.Console"></a>

Stop backup replication from the **Automated backups** page in the source Region.

**To stop backup replication to an AWS Region**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. Choose the source Region from the **Region selector**.

1. In the navigation pane, choose **Automated backups**.

1. On the **Current Region** tab, choose the DB instance for which you want to stop backup replication.

1. For **Actions**, choose **Manage cross-Region replication**.

1. Under **Backup replication**, clear the **Enable replication to another AWS Region** check box.

1. Choose **Save**.

Replicated backups are listed on the **Retained** tab of the **Automated backups** page in the destination Region.

## AWS CLI
<a name="AutomatedBackups.StopReplicating.CLI"></a>

Stop backup replication by using the [https://docs.aws.amazon.com/cli/latest/reference/rds/stop-db-instance-automated-backups-replication.html](https://docs.aws.amazon.com/cli/latest/reference/rds/stop-db-instance-automated-backups-replication.html) AWS CLI command.

The following CLI example stops automated backups of a DB instance from replicating in the US West (Oregon) Region.

**To stop backup replication**
+ Run one of the following commands.

  For Linux, macOS, or Unix:

  ```
  aws rds stop-db-instance-automated-backups-replication \
  --region us-east-1 \
  --source-db-instance-arn "arn:aws:rds:us-west-2:123456789012:db:mydatabase"
  ```

  For Windows:

  ```
  aws rds stop-db-instance-automated-backups-replication ^
  --region us-east-1 ^
  --source-db-instance-arn "arn:aws:rds:us-west-2:123456789012:db:mydatabase"
  ```

## RDS API
<a name="AutomatedBackups.StopReplicating.API"></a>

Stop backup replication by using the [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_StopDBInstanceAutomatedBackupsReplication.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_StopDBInstanceAutomatedBackupsReplication.html) RDS API operation with the following parameters:
+ `Region`
+ `SourceDBInstanceArn`

# Deleting replicated backups for Amazon RDS
<a name="AutomatedBackups.Delete"></a>

You can delete replicated backups for DB instances using the Amazon RDS console. You can also use the `delete-db-instance-automated-backups` AWS CLI command or the `DeleteDBInstanceAutomatedBackup` RDS API operation.

## Console
<a name="AutomatedBackups.Delete.Console"></a>

Delete replicated backups in the destination Region from the **Automated backups** page.

**To delete replicated backups**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. Choose the destination Region from the **Region selector**.

1. In the navigation pane, choose **Automated backups**.

1. On the **Replicated backups** tab, choose the DB instance for which you want to delete the replicated backups.

1. For **Actions**, choose **Delete**.

1. On the confirmation page, enter **delete me** and choose **Delete**.

## AWS CLI
<a name="AutomatedBackups.Delete.CLI"></a>

Delete replicated backups by using the [https://docs.aws.amazon.com/cli/latest/reference/rds/delete-db-instance-automated-backup.html](https://docs.aws.amazon.com/cli/latest/reference/rds/delete-db-instance-automated-backup.html) AWS CLI command.

You can use the [https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instances.html](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instances.html) CLI command to find the Amazon Resource Names (ARNs) of the replicated backups. For more information, see [Finding information about replicated backups for Amazon RDS](AutomatedBackups.Replicating.Describe.md).

**To delete replicated backups**
+ Run one of the following commands.

  For Linux, macOS, or Unix:

  ```
  aws rds delete-db-instance-automated-backup \
  --db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE"
  ```

  For Windows:

  ```
  aws rds delete-db-instance-automated-backup ^
  --db-instance-automated-backups-arn "arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE"
  ```

## RDS API
<a name="AutomatedBackups.Delete.API"></a>

Delete replicated backups by using the [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DeleteDBInstanceAutomatedBackup.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DeleteDBInstanceAutomatedBackup.html) RDS API operation with the `DBInstanceAutomatedBackupsArn` parameter.

# Troubleshooting stopped cross-Region automated backups
<a name="AutomatedXREGBackups.Troubleshooting"></a>

 Amazon RDS automatically stops cross-Region automated backup replication under specific circumstances to protect your data and maintain compliance with AWS operational requirements. 

## Account suspension
<a name="AutomatedXREGBackups.Troubleshooting.AccountSuspension"></a>

If your AWS account is suspended, Amazon RDS automatically stops cross-Region automated backup replication for all DB instances in that account. The replicated backups that already exist in the destination AWS Region are kept up to your specified retention period.

After your account suspension is resolved, you must manually re-enable cross-Region automated backup replication to resume replicating backups to the destination AWS Region.

## Opt-in Region changes
<a name="AutomatedXREGBackups.Troubleshooting.OptInRegion"></a>

Cross-Region automated backup replication stops automatically when you opt out of either the source AWS Region (where the primary DB instance is located) or the destination AWS Region (where backups are being replicated). For more information about opt-in Regions, see [Managing AWS Regions](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html).

The replicated backups that already exist in the destination AWS Region are kept up to your specified retention period. To resume replication, opt back into the required AWS Region and manually re-enable cross-Region automated backup replication.

## AWS KMS key issues
<a name="AutomatedXREGBackups.Troubleshooting.KMSKey"></a>

For encrypted DB instances, Amazon RDS requires access to AWS KMS keys in both the source and destination AWS Region to replicate backups. If you disable or delete the AWS KMS key in either AWS Region, cross-Region automated backup replication stops automatically. The replicated backups that already exist in the destination AWS Region are kept up to your specified retention period.

To resume cross-Region automated backup replication:

1. Re-enable the disabled AWS KMS key, or create a new AWS KMS key if the original was deleted

1. If using a new AWS KMS key, delete existing replicated backup in the destination AWS Region that was encrypted with the previous key.

1. Re-enable cross-Region automated backup replication for the instance

For more information about managing AWS KMS keys, see [AWS Key Management Service documentation](https://docs.aws.amazon.com/kms/latest/developerguide/).

**Note**  
You cannot restore from previously replicated backups in the destination AWS Region unless the previous AWS KMS key is re-enabled. The backups remain encrypted and inaccessible without a valid AWS KMS key.

## Monitoring backup replication status
<a name="AutomatedXREGBackups.Troubleshooting.Monitoring"></a>

You can monitor the status of your cross-Region automated backups using the Amazon RDS console, AWS CLI, or RDS API. For more information, see [Finding information about replicated backups for Amazon RDS](AutomatedBackups.Replicating.Describe.md).