How Backup and Restore works in AWS RDS

Athira KK
4 min readAug 31, 2023

--

π€π¦πšπ³π¨π§ π‘πžπ₯𝐚𝐭𝐒𝐨𝐧𝐚π₯ πƒπšπ­πšπ›πšπ¬πž π’πžπ«π―π’πœπž (π€π¦πšπ³π¨π§ 𝐑𝐃𝐒)

πŸ“Œ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…!!!

--

--

Athira KK
Athira KK

Written by Athira KK

AWS DevOps Engineer | Calico Big Cats Ambassador | WomenTech Global Ambassador | LinkedIn Top Cloud Computing Voice

No responses yet