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.
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.
For an existing DB instance, use the following procedure.
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.
In the navigation pane, choose Automated backups.
On the Current Region tab, choose the DB instance for which you want to enable backup replication.
For Actions, choose Manage cross-Region replication.
Under Backup replication, choose Enable replication to another AWS Region.
Choose the Destination Region.
Choose the Replicated backup retention period.
If you've enabled encryption on the source DB instance, choose the AWS KMS key for encrypting the backups or enter a key ARN.
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.
Enable backup replication by using the start-db-instance-automated-backups-replication
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 replicationRun 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 in the AWS CLI Command Reference.
Enable backup replication by using the StartDBInstanceAutomatedBackupsReplication
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
)
Cross-Region automated backups
Finding information about replicated backups
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4