Sub topic 10
Inspecting recovery points
A recovery point is the saved copy of a resource that a backup job produces. You inspect recovery points to confirm that backups ran, check their size and expiry, and pick the right one to restore. This chapter assumes you have created a vault, a plan, and either a resource assignment or an on-demand backup. It also assumes the AWS CLI is configured.
What a recovery point records
Each recovery point lives in one vault and belongs to one protected resource. It stores these details:
- The 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 for cold storage and deletion.
Listing recovery points
List everything in a vault:
aws backup list-recovery-points-by-backup-vault \
--backup-vault-name app-vaultThe raw output is long. Use --query to show only the fields you need:
aws backup list-recovery-points-by-backup-vault \
--backup-vault-name app-vault \
--query "RecoveryPoints[].{Arn:RecoveryPointArn,Type:ResourceType,Status:Status,Created:CreationDate,SizeBytes:BackupSizeInBytes}" \
--output tableTo see the backups of one resource across all vaults, use list-recovery-points-by-resource with --resource-arn.
Reading the status
| Status | Meaning |
|---|---|
| COMPLETED | The backup finished and the recovery point can be restored. |
| PARTIAL | The backup did not finish within the completion window. It is not a usable backup. |
| EXPIRED | The recovery point passed its retention date and AWS Backup could not delete it. |
| DELETING | AWS Backup is removing the recovery point. |
A PARTIAL status usually means the CompletionWindowMinutes value in your rule is too short for the amount of data. Check the backup job's message, then widen the window.
Checking retention
A recovery point shows when it will be deleted and, if you use cold storage, when it moves. Look at CalculatedLifecycle in the full description:
aws backup describe-recovery-point \
--backup-vault-name app-vault \
--recovery-point-arn <recovery-point-arn> \
--query "{Status:Status,Encrypted:IsEncrypted,Key:EncryptionKeyArn,Lifecycle:CalculatedLifecycle}"If DeleteAt is earlier than you expect, the cause is usually the DeleteAfterDays value in the rule. A lifecycle set on an on-demand backup can also cause it.
Reading the restore metadata
Before you restore, read the metadata that AWS Backup saved with the recovery point:
aws backup get-recovery-point-restore-metadata \
--backup-vault-name app-vault \
--recovery-point-arn <recovery-point-arn>The result is a set of key-value pairs, and the keys depend on the resource type. For an EBS volume they include values such as the Availability Zone and volume size. You use these values as the starting point for a restore request, and you can change some of them, for example to restore into a different Availability Zone.
Exercise
A recovery point shows the status PARTIAL. What does that tell you, and what rule setting should you review first?
Show answer
The backup job did not finish within its completion window, so the recovery point is not a usable backup. Review CompletionWindowMinutes in the backup rule and make sure it is long enough for the amount of data being backed up.