# How to restore form  A Machine to B Machine

**URL:** <https://forums.percona.com/t/how-to-restore-form-a-machine-to-b-machine/8162>\
**Category:** Percona XtraDB Cluster 8.x\
**Created:** [October 21, 2020, 1:19am UTC](https://forums.percona.com/t/how-to-restore-form-a-machine-to-b-machine/8162 "2020-10-21T01:19:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pontos](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pontos/32/142_2.png) [@pontos](https://forums.percona.com/u/pontos)\
**Post date:** [October 21, 2020, 1:19am UTC](https://forums.percona.com/t/how-to-restore-form-a-machine-to-b-machine/8162/1 "2020-10-21T01:19:27Z")

</div>

Hi,everyone I have a question when I worked on my project.

I backup my database and create the folder by name like “20201021” on Machine A,

and I copy this folder to Machine B then start restore by “20201021”.it works!

but when I "service mysqld start " mysql can’t start.

I already chown -R mysql: /var/lib/mysql.

my step:

xtrabackup --backup ..=\>create folder “ **20201021** ” on

- **Machine A**
- **switch to Machine B and Copy "20201021" to this Machine**
- service mysqld stop

xtrabackup --user=root --password=123–prepare --target-dir= /

- **20201021**
- **Complete OK**

xtrabackup --prepare --apply-log-only --target-dir=/

- **20201021**
- **Complete OK**

**Clear** /var/lib/mysql on

- **Machine B**

xtrabackup --user=root --password=root --copy-back --target-dir=/

- **20201021**
- **Complete OK**
- chown -R mysql: /var/lib/mysql
- service mysqld start
- **Service Start Failed**

 ![未命名.png](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/58213ebf758df2d738867cd4033c3f65669f9123.png)

 ![未命名1.png](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/c4ead424dce3f32b6e090d36ba78913359ba34ec.png)

Can anyone help me? Thank you!

---

<div class="post-metadata">

**Author:** ![pontos](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pontos/32/142_2.png) [@pontos](https://forums.percona.com/u/pontos)\
**Post date:** [October 21, 2020, 5:15am UTC](https://forums.percona.com/t/how-to-restore-form-a-machine-to-b-machine/8162/2 "2020-10-21T05:15:50Z")

</div>

Find the solution!

just my Machine A and Machine B different version!

Thanks!
