# Restoring Mysql DB

**URL:** https://forums.percona.com/t/restoring-mysql-db/11922
**Category:** MySQL & MariaDB
**Created:** [August 25, 2021, 5:02pm UTC](https://forums.percona.com/t/restoring-mysql-db/11922 "2021-08-25T17:02:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![amereddy](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@amereddy](https://forums.percona.com/u/amereddy)
#### Post date: [August 25, 2021, 5:02pm UTC](https://forums.percona.com/t/restoring-mysql-db/11922/1 "2021-08-25T17:02:05Z")

</div>

Hello All,

We have a Master/Slave replication setup in both production and test environments on linux. We are trying to restore the test environment with production. This is the first time we are trying to restore db from either master/slave into test environment. All we are seeing is the relay-bin and mysql-bin files. Looking for some guidance on restoring to test environment and not break the master/slave retention setup.  
Thanks so much.

Regards  
Anil

---

<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: [August 25, 2021, 6:53pm UTC](https://forums.percona.com/t/restoring-mysql-db/11922/2 "2021-08-25T18:53:57Z")

</div>

Hello @amereddy,  
What tool did you use to restore the test? What did you use to take a backup of production?
