Restoring a DynamoDB Table from a Backup
We can restore the data by using AWS console and AWS CLI both. But here we will restore the data using AWS Console.
We have created a table named 'students' and took its backup named 'students-bkp'. Now we are going to restore backup named 'students-bkp'.
Steps we need to follow:
1. Delete the table named 'students'2. Restore Backup
Step 1: Delete the table named 'students':
AWS ➔ Services ➔ DynamoDB ➔ Tables ➔ select table 'students' ➔ Delete table ➔ Delete.Fig: Delete DynamoDB Table |
Step 2: Restore Backup:
AWS ➔ Services ➔ DynamoDB ➔ Backups ➔ select 'students-bkp' backup ➔ click on 'Restore backup'
Fig: Restore Backup |
Fig: Provide a Name to the New Table |
We can see the prompt that 'Table is being restored'. The table that is being restored is shown with the status Creating. After the restore process is finished, the status of the 'students-restore' table changes to Active.
Fig: Status of New Table |
After changing the status to Active go to the items, we can see all 5 attributes are available here.
Fig: Verify Database from New Table |
Enjoy!
No comments:
Post a Comment