In this practice, we will take the backup of DynamoDB database using AWS Console but we can also take the backup using AWS-CLI.
In our previous practical we have created a table named 'students'. Here, we use the Amazon DynamoDB console to take backup for the same using AWS Console.
We can take backup by selecting the table or by direct clicking on Backup.
Fig: DynamoDB Database Backup |
To take backup using the AWS console, we just need to have a database. For this we need to follow the steps:
- Create a table and
- Take the backup
Step 1: Create a table:
To create a table follow the below-mentioned link:
https://redhatpanacia.blogspot.com/2019/07/DynamoDB.html
So, now we have a table named 'students'.
Step 2: Take the backup:
We are going to create a backup named 'students-bkp' for an existing table named 'students' using AWS console:
AWS ➔ Services ➔ DynamoDB ➔ Backups: Create backup ➔ Table name: select table named 'students' from the drop-down list ➔ Backup name: students-bkp ➔ Create.
Fig: Create Table Backup |
If you create backups using the Backups section in the navigation pane, the table isn't preselected for you. You have to manually choose the source table name for the backup.
Within a couple of moments, Backup will be in Available state from Creating state.
Fig: Backup State |
This will provide us an ARN number as a result.
No comments:
Post a Comment