How do I choose the correct method for my DynamoDB backups and restores?

所要時間3分
9

I want to choose the correct method for my Amazon DynamoDB backup and restore operations.

Resolution

Choose your backup method

To back up your DynamoDB table, choose one of the following options:

Note: If you use PITR for multiple tables and you turn off PITR, then you must turn off PITR for each table. PITR incurs additional charges. For more information, see Pricing for On-Demand Capacity.

Choose your restore method

To restore a backup, choose one of the following options:

Prepare for your data restore

The data is restored to a new table. If you provide a greater write capacity unit for the data, then the data restore can take longer because DynamoDB has to provision more partitions. To prepare for your data restore, see Why does my Amazon DynamoDB table restoration take a long time?
Important: Although PITR protects against accidental write or delete operations, it's a best practice to use AWS Backup for more complex operations.

Troubleshoot common issues

If you experience issues with your DynamoDB table backup and restore, then complete one of the following tasks based on your issue.

During a PITR restore, I get an "InvalidExportTimeException" error

You might get the following error message:

"errorCode": "InvalidExportTimeException", "errorMessage": "Export Time is invalid"

This error occurs when the restoration time for the latest backup is less than 5 minutes of the current time. To resolve this issue, subtract 5 minutes from the current time when you make the ExportTableToPointInTime API call.

My restored table is missing items

When you restore a table, the item count values and the size of the table aren't the full value. After you restore the table, it can take up to 6 hours to reflect the actual value.

To check if your data transferred, check your table's live item count value.

Complete the following steps:

  1. Open the DynamoDB console.
  2. In the navigation pane, choose Tables, and then select your DynamoDB table.
  3. On the Table details page, under Items summary, choose Get live item count.
  4. Choose Start scan.

During a backup, I get a "Feature is not supported" error

You might get the following error:

"error text: Copy job from us-east-1 to us-east-1 cannot be initiated for DynamoDB resources. Feature is not supported for provided resource type"

This error occurs when you don't turn on the Advanced features for DynamoDB backups option. To turn on this feature, see Turning on advanced DynamoDB backup using the console.

Related information

How do I turn on DynamoDB point-in-time recovery?

Creating backup copies across AWS Regions

AWS公式
AWS公式更新しました 2ヶ月前
コメントはありません

関連するコンテンツ