ππ¦ππ³π¨π§ πππ₯πππ’π¨π§ππ₯ πππππππ¬π πππ«π―π’ππ (ππ¦ππ³π¨π§ πππ)
πAmazon RDS is a managed service which we can use to launch and manage relational databases on AWS. It makes it easy to set up, operate, and scale a relational database in the AWS cloud , also provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks.
πAmazon RDS supports 6 engines, PostgreSQL, MySQL, MariaDB , oracle database , SQL server and Amazon Aurora.
Here weβre going to do the lab on MySQL.
πAmazon RDS is an example for Relational database which stores data in a tabular format with rows and columns and uses sql query language to query the data. Each field in the table represents a data value , rows contain records and columns with attributes. It enables developers to define databaseβs schema , relations and constraints between rows and columns. Highly structured and having more data accuracy and consistency.
βLetβs get started in the labβ¦.!!!
βͺοΈSearch for RDS from AWS console and click on create Database.Then follow the steps shown below : select MySQL
βͺοΈSelect Free-tier
βͺοΈProvide Database Identifier name and Password
βͺοΈSelect Instance configuration as Burstable classes
βͺοΈEnable the public access from Connectivity
βͺοΈAll the other settings are default and click on create database. Once the newly created DB status showing as available , go to AWS console and search for AWS Backup.
βͺοΈGoto Protected resources from LHS and click on Create on-demand backup.
βͺοΈSelect the Resource type as RDS and select the DB name which we created from Database name.
βͺοΈHere Iβm selecting a retention period as 7 days, you can choose it on your choice. Rest all settings are default and click on Create on-demand backup.
βͺοΈWe can refresh the Jobs page and check the backup status, here we can see the backup is completed:
βͺοΈNow weβre going to delete the database from RDS : select the database β Actions β Delete
βͺοΈOnce the database is deleted , goto AWS Backup β Protected Resources β select the database and β click on Restore
βͺοΈIt will take sometime to complete the process. Select the DB instance class as db.t2 micro and rest all fields as default
βͺοΈSelect β Do not create Standby instance β option . The other option is only recommends for if weβre using RDS for production usage.
βͺοΈEnable public access from Network and Security settings and click on Restore backup.
βͺοΈAll other settings are left as it is. We will get a restore job ID like below:
βͺοΈGo to RDS page and select Databases there , we can see the newly created restore database there:
βͺοΈOnce the restore is completed , go to RDSβ Databases β and delete db1-restore. Then go to AWS Backup β Backup vaults , we could see the restoration is completed
This is how backup and restore works in AWS.
Enjoy your learningβ¦!!!