RDS mysql automatic backup to another rds db every 12 hours

0

I am having two databases prod and test.. both are based on rds mysql and in same region. I want that every 12 hours prod should be backed up into the test db. i mean prod should be backed up and should be restored to test or similarly something

5 Answers
1

Hello.
Wouldn't Prod's method of creating RDS snapshots every 12 hours with AWS Backup, etc. and restoring instances from the snapshots fit your use case?
https://aws.amazon.com/jp/blogs/storage/point-in-time-recovery-and-continuous-backup-for-amazon-rds-with-aws-backup/

profile picture
EXPERT
answered 10 months ago
profile pictureAWS
EXPERT
reviewed 10 months ago
1

Similar question I’ve answered before.

I would recommend using AWS DMS To sync the data from PROD to test and run every 12 hours.

https://docs.aws.amazon.com/dms/latest/userguide/Welcome.html

At a basic level, AWS DMS is a server in the AWS Cloud that runs replication software.

profile picture
EXPERT
answered 10 months ago
0
Accepted Answer

Hi Raj

For your requirement of copying data from the production database to the test database on a schedule, we have a few options.

  1. Use AWS Backup to backup the database on the 12-hour schedule and restore the database. The same option
  2. Use DMS to create a continuous migration pipeline which would keep the databases in sync with real-time replication. (DMS)
  3. Use AWS Glue and create a Glue Job to copy data from production to test on a schedule. (Glue)

As you are looking for a codeless solution DMS would be the ideal option.

profile picture
Bisina
answered 10 months ago
  • You do not necessarily need continuous migration. You can simply request a point in time restore every 12 hours to a 'test' database.

0

Hey,thanks for reply, this works for me however i will need that it gets auto restored on my test db. any solution for that?

answered 10 months ago
  • Hi, see above: I proposed a solution for it.

  • hi, any other way except lambda ? i want to make it codeless as much as possible. Though i'll try this any let you know.Thanks

0

Hi

There is an option to perform auto recovery after every backup is peformed using Lambda function and Eventbridge rule.

https://aws.amazon.com/blogs/storage/automate-data-recovery-validation-with-aws-backup/

AWS
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions