

# Retaining automated backups
<a name="Aurora.Managing.Backups.Retaining"></a>

When you delete a provisioned or Aurora Serverless v2 DB cluster, you can retain automated backups. This allows you to restore a DB cluster to a specific point in time within the backup retention period, even after the cluster is deleted.

*Retained automated backups* contain system snapshots and transaction logs from a DB cluster. They also include DB cluster properties, such as DB instance class, which are required to restore it to an active cluster.

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

**Topics**
+ [Retention period](#Aurora.Managing.Backups.Retaining.Period)
+ [Retention costs](#Aurora.Managing.Backups.Retaining.Costs)
+ [Prevent automated backup deletion](#aurora-copy-snapshot.Retention)
+ [Limitations](#Aurora.Managing.Backups.Retaining.Limits)
+ [Viewing retained automated backups for Amazon Aurora](Aurora.Managing.Backups.Retaining.Viewing.md)
+ [Deleting retained automated backups for Amazon Aurora](Aurora.Managing.Backups.Retaining.Deleting.md)

## Retention period
<a name="Aurora.Managing.Backups.Retaining.Period"></a>

The system snapshots and transaction logs in a retained automated backup expire the same way that they expire for the source DB cluster. The settings for the retention period of the source cluster also apply to the automated backups. Because no new snapshots or logs are created for this cluster, the retained automated backups eventually expire completely. After the retention period is over, you continue to retain manual DB cluster snapshots, but all of the automated backups expire.

You can remove retained automated backups using the console, AWS CLI or RDS API. For more information, see [Deleting retained automated backups for Amazon Aurora](Aurora.Managing.Backups.Retaining.Deleting.md).

Unlike a retained automated backup, a final snapshot doesn't expire. We strongly suggest that you take a final snapshot even if you retain automated backups, because the retained automated backups eventually expire.

## Retention costs
<a name="Aurora.Managing.Backups.Retaining.Costs"></a>

There is no additional charge for backup storage of up to 100% of your total Aurora database storage for each Aurora DB cluster. There is also no additional charge up to one day when you retain automated backups after deleting a DB cluster. Backups that you retain for more than one day are charged.

There is no additional charge for transaction logs or instance metadata. All other pricing rules for backups apply to restorable clusters. For more information, see the [Amazon Aurora pricing](https://aws.amazon.com/rds/aurora/pricing) page.

## Prevent automated backup deletion
<a name="aurora-copy-snapshot.Retention"></a>

Amazon RDS deletes automated backups in several situations: 
+ At the end of their retention period.
+ When you delete a DB cluster.

If you want to keep an automated backup for a longer period, copy it to create a manual snapshot, which is retained until you delete it. Amazon RDS storage costs might apply to manual snapshots if they exceed your default storage space.

For more information about copying a DB cluster snapshot, see [DB cluster snapshot copying](aurora-copy-snapshot.md).

For more information about backup storage costs, see [Amazon RDS pricing](https://aws.amazon.com/rds/pricing/). 

## Limitations
<a name="Aurora.Managing.Backups.Retaining.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 quota for DB clusters. You can have up to 40 running DB clusters, 40 running DB instances, and 40 retained automated backups for DB clusters at the same time.

  For more information, see [Quotas in Amazon Aurora](CHAP_Limits.md#RDS_Limits.Limits).
+ Retained automated backups don't contain information about parameters or option groups.
+ You can restore a deleted cluster to a point in time that is within the retention period at the time of deletion.
+ You can't modify a retained automated backup because it consists of system backups, transaction logs, and the DB cluster properties that existed at the time that you deleted the source cluster.
+ Cross-Region automated backup replication isn't supported for Aurora DB clusters. Aurora doesn't support automatically replicating snapshots and transaction logs to another AWS Region. For disaster recovery across Regions, you must manually copy Aurora snapshots to your desired destination Region.

# Viewing retained automated backups for Amazon Aurora
<a name="Aurora.Managing.Backups.Retaining.Viewing"></a>

To view your retained automated backups in the RDS console, 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-cluster-automated-backups --db-cluster-resource-id DB_cluster_resource_ID
```

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

# Deleting retained automated backups for Amazon Aurora
<a name="Aurora.Managing.Backups.Retaining.Deleting"></a>

You can delete retained automated backups when they are no longer needed. To delete a retained automated backup using the AWS Management Console, AWS CLI, or Amazon RDS API, use the following procedures.

## Console
<a name="Aurora.Managing.Backups.Retaining.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. Choose the **Retained** tab.  
![\[Retained automated backups interface showing backup retention settings and available recovery points.\]](http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/images/db-cluster-retained-automated-backups.png)

1. 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="Aurora.Managing.Backups.Retaining.Deleting.CLI"></a>

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

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

**Example**  
This example deletes the retained automated backup for the source DB cluster that has the resource ID `cluster-123ABCEXAMPLE`.  
For Linux, macOS, or Unix:  

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

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

## RDS API
<a name="Aurora.Managing.Backups.Retaining.Deleting.API"></a>

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

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