# How to configure GTID MySQL8 replication from existing standalone(old Master) to new Slave server using Xtrabackup8

**URL:** <https://forums.percona.com/t/how-to-configure-gtid-mysql8-replication-from-existing-standalone-old-master-to-new-slave-server-using-xtrabackup8/12104>\
**Category:** MySQL & MariaDB\
**Tags:** mysql\
**Created:** [September 9, 2021, 12:06pm UTC](https://forums.percona.com/t/how-to-configure-gtid-mysql8-replication-from-existing-standalone-old-master-to-new-slave-server-using-xtrabackup8/12104 "2021-09-09T12:06:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naresh9999](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/naresh9999/32/5568_2.png) [@Naresh9999](https://forums.percona.com/u/Naresh9999)\
**Post date:** [September 9, 2021, 12:06pm UTC](https://forums.percona.com/t/how-to-configure-gtid-mysql8-replication-from-existing-standalone-old-master-to-new-slave-server-using-xtrabackup8/12104/1 "2021-09-09T12:06:42Z")

</div>

Hi Team,

DB Version: MYSQL8.24 and Xtrabackup8 backup tool.

Need help on MySQL8 GTID replication setup from old existing master(standalone) to a new slave server.  
I want to do with xtrbackup, is there any detailed step-by-step document using xtrbackup backup to enable replication from existing master to new slave?  
Can you please help me with any documentation?

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [September 9, 2021, 1:15pm UTC](https://forums.percona.com/t/how-to-configure-gtid-mysql8-replication-from-existing-standalone-old-master-to-new-slave-server-using-xtrabackup8/12104/2 "2021-09-09T13:15:58Z")

</div>

Hello @Naresh9999,  
Make sure GTID is enabled on your new source (gtid\_mode=ON, enforce\_gtid\_consistency=ON) and then take the backup and restore to new server like normal. We have many examples, step-by-step on [percona.com](http://percona.com) documentation pages to take and restore backups.
