Linux | Cloud | DevOps | Scripting

Breaking

Saturday, 27 July 2019

Restore DynamoDB Database using AWS Console


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.

Delete DynamoDB Table
Fig: Delete DynamoDB Table
Now, our table has been deleted, which we need to recover from backup named 'students-bkp'.

Step 2: Restore Backup:

AWS ➔ Services ➔ DynamoDB ➔ Backups ➔ select 'students-bkp' backup ➔ click on 'Restore backup'

Restore Backup
Fig: Restore Backup
As we click on 'Restore backup', this will ask for a 'New table name': students-restore ➔ Restore table.

Provide a Name to the New Table
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.

Status of New Table
Fig: Status of New Table

After changing the status to Active go to the items, we can see all 5 attributes are available here.

Verify Database from New Table
Fig: Verify Database from New Table

Enjoy!




No comments:

Post a Comment

Pages