Sub topic 1
What AWS Backup does and what it can protect
AWS Backup is a managed service that handles backup scheduling, retention, copying, and restore for many AWS services from one place. Without it, each service has its own mechanism. EBS has snapshots, RDS has automated backups, DynamoDB has on-demand backups and point-in-time recovery, and EFS has its own replication and backup features. AWS Backup puts one policy layer over these services, so you define a schedule and a retention rule once and apply them to many resources.
Prerequisites
This chapter assumes you already have the following:
- Basic familiarity with the AWS Management Console and the AWS CLI.
- An understanding of IAM roles and policies.
- Working knowledge of core resources such as EC2/EBS, RDS, DynamoDB, and EFS.
- Familiarity with resource tagging.
- A basic understanding of RPO (how much data you can afford to lose) and RTO (how long you can afford to be down).
The working model
AWS Backup does not store your data in a new kind of storage that you manage. It orchestrates the native backup capability of each service and keeps the results in a container you control. Six building blocks appear throughout this tutorial:
| Building block | What it is |
|---|---|
| Backup vault | A container that holds recovery points. Access and encryption are set here. |
| Backup plan | A policy made of one or more rules. |
| Backup rule | A schedule, a start window, a completion window, a target vault, and a lifecycle. |
| Resource assignment | The link between a plan and the resources it protects, by tag or ARN. |
| IAM service role | The role AWS Backup assumes to read, back up, and restore your resources. |
| Recovery point | One saved backup of one resource, which you restore from. |
The sections below show how these pieces connect.
A plan alone does nothing. A backup job runs only when a rule's schedule fires and at least one resource is assigned to that plan. The job needs a service role with permission to act on the resource. If any of these is missing, no recovery point appears.
What AWS Backup can protect
AWS Backup supports a large and growing list of services. The main groups are:
- Compute and block storage: Amazon EC2 (instances as AMIs plus their EBS volumes) and Amazon EBS volumes.
- File storage: Amazon EFS, Amazon FSx file systems, and AWS Storage Gateway volumes.
- Object storage: Amazon S3 buckets.
- Relational databases: Amazon RDS, Amazon Aurora, and Amazon DocumentDB.
- Other databases: Amazon DynamoDB, Amazon Neptune, Amazon Timestream, and Amazon Redshift.
- Other workloads: AWS CloudFormation stacks, SAP HANA on EC2, and VMware workloads through AWS Backup gateway.
Do not rely on this list from memory. The set of supported services changes, and some features differ by service. The "feature availability by resource" table in the AWS Backup documentation is the authoritative source. It shows, for each service, whether it supports cross-Region copy, cross-account copy, continuous backup, cold storage, and other features. Check it before you design a strategy around a feature.
What the backup actually contains
The content depends on the service. For EBS, the recovery point is a snapshot. For EC2, it is an AMI plus the snapshots of attached volumes. For RDS, it is a database snapshot. For DynamoDB, it is a table backup. Because AWS Backup builds on each service's native mechanism, restore behavior also follows that service. Restoring an RDS recovery point creates a new DB instance. It does not overwrite the existing one. Restoring an EBS recovery point creates a new volume.
Most backups after the first are incremental where the underlying service supports it. Only changed data is stored, so storage cost depends on the change rate rather than on the number of recovery points.
Region and service opt-in
AWS Backup is a regional service. Vaults, plans, and jobs exist in one Region and one account. A plan in us-east-1 does not protect resources in eu-west-1. You can copy recovery points between Regions and accounts, which later chapters cover.
Each resource type must also be enabled for AWS Backup in each Region. This is the service opt-in setting. If a type is not enabled, plans that assign those resources can fail to protect them. Check the settings with the CLI:
aws backup describe-region-settings --region us-east-1The output contains a ResourceTypeOptInPreference map with true or false per resource type. To enable one type, for example DynamoDB:
aws backup update-region-settings \
--region us-east-1 \
--resource-type-opt-in-preference DynamoDB=truePassing the map with only one key updates that key. Review the output of describe-region-settings afterwards rather than assuming the change applied.
Seeing what is already protected
Once plans exist, you can list the resources AWS Backup currently protects in a Region:
aws backup list-protected-resources --region us-east-1Each entry includes the resource ARN, its type, and the time of its last backup. This is a quick check that a tag-based assignment picked up the resources you expected. A resource that is missing from this list has no recovery point yet. Either no job has run, or the job did not succeed.
Common errors and gotchas
- Nothing was backed up. The usual causes are an empty assignment (the tag does not match, or is on the wrong resource), a service type that is not opted in, or a schedule that has not fired yet. Check these before looking at IAM.
- Jobs fail with access denied. The service role lacks permission on the resource or on the KMS key. The default role
AWSBackupDefaultServiceRolecovers common cases, but it does not grant access to custom keys. A later chapter covers the role in detail. - Wrong Region. The console shows one Region at a time. A "missing" backup is often in a different Region from the one you are viewing.
- Assuming restore overwrites. Restores create new resources. Plan how you will redirect traffic or rename them.
- Assuming every feature works for every service. Cold storage, continuous backup, and cross-account copy are supported only for some types.
- Treating backup as high availability. Backups protect against data loss and corruption. They do not keep an application running during a failure. Your RTO is bounded by restore time, which grows with data size.
What AWS Backup is not
AWS Backup is not a replacement for Multi-AZ deployments or replication, which keep a service available. It also does not back up what is not an AWS resource, such as application configuration that lives only in a developer's laptop. It protects what you assign to it, and only after you assign it. A new resource that is not covered by a tag or ARN assignment has no protection at all.
Choosing between per-service backups and AWS Backup
Per-service tools are still useful, for example for very fine-grained control within a single database engine. Choose AWS Backup when you need one retention and audit policy across several service types, centralized copies to another account, or compliance reporting. The rest of this tutorial builds that setup step by step: vaults, encryption, the service role, plans, rules, lifecycle, assignments, on-demand backups, restores, and the advanced features that build on them.
Exercise
You created a backup plan with a daily rule and assigned a DynamoDB table to it by tag. A day later, list-protected-resources shows nothing for that table. Name three things you would check first.
Show answer
First, confirm the tag key and value on the table exactly match the assignment. Second, check that DynamoDB is opted in for AWS Backup in that Region with describe-region-settings. Third, confirm the rule's schedule has actually fired and look at the backup job status, including whether the service role has the permissions it needs.
Exercise
A teammate restores an RDS recovery point and expects the existing database to be rolled back. What actually happens?
Show answer
AWS Backup creates a new DB instance from the recovery point. The existing instance is not changed, so the teammate must switch the application to the new instance or rename resources.