RDS replication data migration from new standalone to old master instance

0

I followed this : [https://repost.aws/knowledge-center/rds-mysql-cross-region-replica] to create an RDS MySQL read replica from account A(region x) to account B (region y). I promoted that read replica and switched traffic to this new instance. Now this new standalone RDS has more data as compared to the older (account A and region x) ...I want to switch traffic back to the older instance but I want that additional data to be here as well..Is there any way to do so reference to any guides or documentation will be highly appreciated.

3 Antworten
1
Akzeptierte Antwort

Once a read replica is promted to master it will cut its ties with the inital master and now is orphaned. There is no native way to replicate the data back.

I believe AWS docs recommend that you follow the same process but in reverse.. Create a new read replica from Account B back to Account A and then promote account A to be the Master again. At which point re-create the read replica in Account B.

https://aws.amazon.com/blogs/database/use-cross-region-read-replicas-with-amazon-relational-database-service-for-sql-server/#:~:text=With%20cross%2DRegion%20read%20replica,to%20a%20new%20AWS%20Region.

profile picture
EXPERTE
beantwortet vor 4 Monaten
profile pictureAWS
EXPERTE
überprüft vor 4 Monaten
1

Hi,

AWS RDS offers PITR (Point-In-Time-Recovery) features that will help you achieve what you want : see https://repost.aws/fr/knowledge-center/backup-coordinates-pitr

Also have a look at https://docs.aws.amazon.com/aws-backup/latest/devguide/point-in-time-recovery.html#point-in-time-recovery-supported-services

Best,

Didier

profile pictureAWS
EXPERTE
beantwortet vor 4 Monaten
1

Hello.

How about temporarily stopping the application and migrating the data using something like mysqldump?
In this case, the application will be stopped for a period of time, but the data can be moved reliably.

I think there are other methods such as using DMS etc. to perform replication.
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Introduction.html

profile picture
EXPERTE
beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen