Sub topic 10
Inspecting recovery points
This chapter assumes you can run the AWS CLI, that app-vault exists with a plan or an on-demand job writing into it, and that you know what a backup job is. It also assumes you can read JSON output and use a --query filter.
A recovery point is the stored result of one successful backup of one resource. Every restore, copy, retention check and audit starts from one. Knowing how to list, filter and read recovery points lets you check that your plan does what you intended before you need a restore.
What a recovery point is
AWS Backup creates a recovery point each time a backup job finishes for a resource. It stores the recovery point in a vault and identifies it by an Amazon Resource Name (ARN). The ARN format depends on the service. For EBS, the recovery point is a snapshot, so its ARN looks like arn:aws:ec2:us-east-1::snapshot/snap-0abc.... For other services the ARN refers to a backup object in the vault.
A recovery point carries metadata you can inspect without restoring anything:
- The source resource ARN and resource type.
- The creation and completion times.
- The status.
- The backup size.
- The encryption key.
- The lifecycle settings and the calculated dates when it will move to cold storage or be deleted.
- The plan and rule that created it, if any.
Listing recovery points
You can list by vault or by resource. Listing by vault is the usual starting point:
aws backup list-recovery-points-by-backup-vault \
--backup-vault-name app-vaultThe raw output is long. Use --query to keep the columns you care about:
aws backup list-recovery-points-by-backup-vault \
--backup-vault-name app-vault \
--query 'RecoveryPoints[].{Arn:RecoveryPointArn,Type:ResourceType,Status:Status,Created:CreationDate,Size:BackupSizeInBytes}' \
--output tableThe command accepts filters, which the service applies before it returns results:
| Option | Filters by |
|---|---|
| `--by-resource-arn` | The protected resource |
| `--by-resource-type` | Service type, such as `EBS` or `RDS` |
| `--by-backup-plan-id` | The plan that created the point |
| `--by-created-after` / `--by-created-before` | Creation time range |
| `--by-parent-recovery-point-arn` | The parent of a composite recovery point |
To see every recovery point for one resource across all vaults in the Region, use the resource-based call:
aws backup list-recovery-points-by-resource \
--resource-arn arn:aws:ec2:us-east-1:123456789012:volume/vol-0123456789abcdef0This is the right call when you ask "how far back can I restore this volume?" and you do not know which vault holds the copies. Both calls are paginated, and the CLI follows the pages for you by default.
Describing one recovery point
describe-recovery-point returns the full record:
aws backup describe-recovery-point \
--backup-vault-name app-vault \
--recovery-point-arn <recovery-point-arn>The fields that matter most in practice:
Status: the current state, covered in the next section.CreatedBy: containsBackupPlanId,BackupPlanVersionandBackupRuleIdfor plan-created points. It is empty for on-demand jobs, which is a quick way to tell the two apart.LifecycleandCalculatedLifecycle:Lifecycleis what was requested.CalculatedLifecycleholds the resultingMoveToColdStorageAtandDeleteAttimestamps. UseDeleteAtto confirm retention is what you configured.EncryptionKeyArnandIsEncrypted: the KMS key protecting the data.IamRoleArn: the role the job used.LastRestoreTime: the last time this point was restored. Useful as evidence that a restore test happened.SourceBackupVaultArn: present on copies, and points to the vault the data came from.
You can pull just the retention dates:
aws backup describe-recovery-point \
--backup-vault-name app-vault \
--recovery-point-arn <recovery-point-arn> \
--query '{Status:Status,DeleteAt:CalculatedLifecycle.DeleteAt,Cold:CalculatedLifecycle.MoveToColdStorageAt}'Reading the status
| Status | Meaning |
|---|---|
| `COMPLETED` | The backup finished and the point is restorable. |
| `PARTIAL` | The backup did not finish in time, so the point is incomplete. |
| `DELETING` | AWS Backup is deleting the point. |
| `EXPIRED` | The retention date passed but AWS Backup could not delete it. |
Treat PARTIAL as a sign that the completion window in your rule is too short for the data volume. Raise CompletionWindowMinutes, or look at what slowed the job.
EXPIRED usually means a permissions problem. The service role may lack permission to delete the underlying snapshot, or a lock may block deletion. Fix the cause and delete the point again. The retention date does not retry on its own.
A quick health check that lists only points that are not COMPLETED:
aws backup list-recovery-points-by-backup-vault \
--backup-vault-name app-vault \
--query 'RecoveryPoints[?Status!=`COMPLETED`].[RecoveryPointArn,Status]' \
--output textConnecting a point to its job
Jobs and recovery points are separate records. A job describes the work, and a recovery point describes the result. To find which job produced a point, or why a point is missing, look at the jobs:
aws backup list-backup-jobs \
--by-backup-vault-name app-vault \
--by-state FAILEDDescribe a job with describe-backup-job --backup-job-id <id>. A successful job returns a RecoveryPointArn. A failed job has a StatusMessage and no recovery point. If you expect a point for a given day and it is absent, check the jobs first. Common causes are a resource that no longer matches the tag selection, a role that cannot act on the resource, or a start window that closed before the job began.
Changing or removing a recovery point
You can edit the lifecycle of an existing point:
aws backup update-recovery-point-lifecycle \
--backup-vault-name app-vault \
--recovery-point-arn <recovery-point-arn> \
--lifecycle DeleteAfterDays=90The new period counts from the creation date, not from today. Lowering it below the age of the point causes deletion soon after, so check the age first. Vault Lock minimum and maximum retention limits also apply to changes like this one.
To delete a point immediately, use delete-recovery-point. Deletion is permanent.
Edge cases
- Continuous backups. A resource with continuous backup enabled has a recovery point that covers a window of time, not one instant. Its lifecycle cannot move to cold storage. Restores of these points use a chosen timestamp.
- Copies. A copy in another vault or Region is a separate recovery point with its own ARN and its own lifecycle. Deleting the source does not delete the copy.
- Cold storage. Only some resource types can transition to cold storage. A cold point must stay there at least 90 days, so
DeleteAfterDaysmust be at least 90 days more thanMoveToColdStorageAfterDays. - Size.
BackupSizeInBytescan be small or zero for incremental backups or for services that do not report it. Do not use it alone to judge whether a backup is valid. - Per-Region scope. Listing returns only the current Region unless you pass
--region.
Exercise
A daily rule should keep recovery points for 35 days. You run describe-recovery-point on a point created 10 days ago, and CalculatedLifecycle.DeleteAt is about 25 days away. Is this correct? What if the same command on an on-demand point shows an empty CreatedBy?
Show answer
Yes. DeleteAt is the creation time plus 35 days, so a 10-day-old point has about 25 days left. An empty CreatedBy is normal for an on-demand backup, because no plan, plan version or rule created it. Its retention comes from the lifecycle given in start-backup-job.
Exercise
Which command would you run to list every recovery point for one EBS volume across all vaults in the current Region, and which status values would you treat as a problem?
Show answer
Run aws backup list-recovery-points-by-resource with --resource-arn set to the volume ARN. PARTIAL (the backup did not finish in time) and EXPIRED (AWS Backup could not delete the point when retention ended) both need attention. DELETING is expected during cleanup.