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개 답변
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
전문가
답변함 10달 전
profile pictureAWS
전문가
검토됨 10달 전
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
전문가
답변함 10달 전
0
수락된 답변

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
답변함 10달 전
  • 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?

답변함 10달 전
  • 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
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인