Sub topic 4
Automating backups and cross-Region copies with AWS Backup
This chapter assumes you know what a Region, an Availability Zone, and an EBS snapshot are. You should also be able to read the JSON and AWS CLI commands used in the earlier chapters. By the end, you will be able to build a backup plan that copies recovery points to a second Region, assign resources to it, and check that the copies actually arrive.
Why AWS Backup fits the backup and restore strategy
In the backup and restore strategy, nothing runs in the DR Region until a disaster happens. Your recovery depends on having recent, restorable copies of your data in that Region. You could script this yourself with RDS snapshot copies, EBS snapshot copies, and S3 replication. Each service has its own schedule, retention, and failure behavior, though, and that adds up to a lot of scripts to maintain.
AWS Backup puts one policy layer over many services. It supports EC2/EBS, RDS, Aurora, DynamoDB, EFS, FSx, S3, and others. A single plan defines when to back up, how long to keep each backup, and where to copy it. The service tracks every backup and copy as a job you can monitor.
The building blocks
| Concept | What it is |
|---|---|
| Backup vault | A container for recovery points. It has its own encryption key and access policy. |
| Recovery point | One backup of one resource, stored in a vault. |
| Backup plan | A set of rules that define schedule, vault, lifecycle, and copy actions. |
| Rule | One schedule inside a plan. A plan can hold several rules, such as daily and monthly. |
| Resource assignment | The list of resources a plan protects, chosen by ARN or by tag. |
| Copy action | A rule setting that copies each new recovery point into another vault, in another Region or account. |
A vault exists in exactly one Region. A cross-Region copy therefore always needs a destination vault that you created in advance.
Step 1: create the destination vault
Create the DR vault first, in the DR Region. Give it a KMS key from that Region, because encryption keys are Regional.
aws backup create-backup-vault \
--region us-west-2 \
--backup-vault-name dr-vault \
--encryption-key-arn arn:aws:kms:us-west-2:111122223333:key/REPLACE_WITH_KEY_IDIf you omit the key, AWS Backup uses an AWS managed key. That works for same-account copies. A customer managed key gives you control over who can use the recovery points. It is also required if you plan to share them across accounts.
Step 2: define the plan with a copy action
The plan below takes a daily backup at 05:00 UTC, keeps it 35 days, and copies it to dr-vault in us-west-2 with the same retention.
{
"BackupPlanName": "dr-daily",
"Rules": [
{
"RuleName": "daily-with-cross-region-copy",
"TargetBackupVaultName": "Default",
"ScheduleExpression": "cron(0 5 * * ? *)",
"Lifecycle": { "DeleteAfterDays": 35 },
"CopyActions": [
{
"DestinationBackupVaultArn": "arn:aws:backup:us-west-2:111122223333:backup-vault:dr-vault",
"Lifecycle": { "DeleteAfterDays": 35 }
}
]
}
]
}Save it as plan.json and create it:
aws backup create-backup-plan --backup-plan file://plan.jsonThe command returns a BackupPlanId. You need it in the next step.
The fields that matter most:
ScheduleExpressionuses a cron format with six fields and runs in UTC unless you set a time zone for the rule.TargetBackupVaultNameis the source vault.Defaultexists in every Region, but a dedicated vault is better practice because you can attach separate policies to it.- Each
Lifecycleis independent. The copy has its own retention, and it does not inherit the source's. If you leave it out, the copy is kept indefinitely and storage cost grows without bound. - You can list several entries in
CopyActionsto copy to more than one Region or account.
Step 3: assign resources
A plan with no assignment protects nothing. This is the most common mistake with a new plan: it is created successfully, and then no backups happen.
Tag-based assignment is the more durable choice, because new resources are picked up automatically.
aws backup create-backup-selection \
--backup-plan-id REPLACE_WITH_PLAN_ID \
--backup-selection '{
"SelectionName": "tier1-by-tag",
"IamRoleArn": "arn:aws:iam::111122223333:role/service-role/AWSBackupDefaultServiceRole",
"ListOfTags": [
{ "ConditionType": "STRINGEQUALS", "ConditionKey": "dr-tier", "ConditionValue": "backup-restore" }
]
}'Any supported resource tagged dr-tier=backup-restore is now backed up and copied. The IAM role is the identity AWS Backup uses to read your resources. The default service role carries the AWS managed policies for backup and restore. If you use a custom role, it also needs permission to use the KMS keys involved.
What happens at run time
For each scheduled run, AWS Backup starts a backup job for each assigned resource. When the job completes, it starts a copy job into the destination vault. Two consequences matter for your recovery objectives:
- The copy is not instant. The recovery point exists in the DR Region only after the copy job finishes. Your effective RPO is the backup interval plus the backup duration plus the copy duration. With a daily schedule and a two-hour copy, the worst-case data loss is more than 24 hours.
- Windows can cancel jobs.
StartWindowMinutesis how long a job may wait to start.CompletionWindowMinutesis how long it may run before AWS Backup cancels it. Large databases that exceed the completion window fail every day until you raise it.
The first copy of a resource is a full copy. Later copies of many resource types are incremental, which is cheaper and faster. Support varies by service, so check the feature matrix in the AWS Backup documentation for the resources you protect.
Monitor the jobs rather than assuming success:
aws backup list-copy-jobs \
--region us-east-1 \
--by-state FAILED \
--by-created-after 2026-11-25T00:00:00ZFor alerting, send AWS Backup job state changes through Amazon EventBridge to an SNS topic. A failed copy job at 05:30 is a silent RPO violation until someone sees it.
Protecting the copies
A DR copy is only useful if an attacker or a bad script cannot delete it. Two features help:
- Vault access policy. A resource policy on the vault can deny
backup:DeleteRecoveryPointto everyone except a specific administrator role. - Vault Lock. This enforces a minimum and maximum retention period. In governance mode, privileged users can still remove the lock. In compliance mode, nobody can change or delete the lock after its cooling-off period ends, not even the root user. Test your retention numbers in governance mode before you commit to compliance mode.
For stronger isolation, copy to a vault in a separate AWS account. This protects against compromised credentials in the source account. It needs a destination vault access policy that allows the source account to copy in.
Common errors
- Copy fails with an access error. The destination KMS key policy or vault policy does not allow the backup role. Check both.
- Copy never starts. The destination vault ARN has the wrong Region or account, or the vault does not exist.
- Lifecycle rejected. If you use cold storage,
DeleteAfterDaysmust be at least 90 days greater thanMoveToColdStorageAfterDays. Cold storage also applies only to some resource types. - Point-in-time restore is missing in the DR Region. Continuous backups for point-in-time recovery are a same-Region feature. Treat the cross-Region copy as a snapshot with the granularity of your schedule, and verify the behavior for your resource type.
- Restore works but the application does not. A recovery point holds data, not the VPC, security groups, or IAM roles around it. The infrastructure-as-code chapter covers recreating those.
Prove that restores work
AWS Backup offers restore testing plans, which restore a sample of your recovery points on a schedule and report whether the restore succeeded. Point one at dr-vault in the DR Region. The restore time it reports is a measured input for your RTO, which is more trustworthy than an estimate.
Exercise
Your plan backs up an RDS database daily at 05:00 UTC and copies it to us-west-2. The backup takes 40 minutes and the copy takes 90 minutes. In the worst case, how much data can you lose if us-east-1 fails just before the next day's backup completes, and what would you change to reduce it?
Show answer
The latest copy in us-west-2 is from the previous day. The worst case is just before the next copy lands, at about 05:00 plus 40 minutes plus 90 minutes, which is 07:10 UTC. Data written since the previous day's 05:00 snapshot point is lost, so the loss is about 26 hours and 10 minutes. To reduce it, run the rule more often (for example every 6 hours), or move this database to continuous cross-Region replication such as an Aurora global database, which belongs to the pilot light strategy and above.