# Problem restoring xtrabackup

**URL:** <https://forums.percona.com/t/problem-restoring-xtrabackup/10493>\
**Category:** Percona XtraBackup\
**Created:** [May 17, 2021, 9:30pm UTC](https://forums.percona.com/t/problem-restoring-xtrabackup/10493 "2021-05-17T21:30:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![betancourtl](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/betancourtl/32/3550_2.png) [@betancourtl](https://forums.percona.com/u/betancourtl)\
**Post date:** [May 17, 2021, 9:30pm UTC](https://forums.percona.com/t/problem-restoring-xtrabackup/10493/1 "2021-05-17T21:30:59Z")

</div>

Hello, I’m downloading a backup from an external server and restoring it on a docker container volume. I’m currently running percona-server:57 docker image [Docker Hub](https://hub.docker.com/r/percona/percona-server).

I followed all the steps mentioned in this guide, [The Backup Cycle - Full Backups - Percona XtraBackup](https://www.percona.com/doc/percona-xtrabackup/2.4/backup_scenarios/full_backup.html#restoring-a-backup) to restore the backup but It doesn’t seem to work.

When I look at the docker logs I see this:

 ![Screen Shot 2021-05-17 at 5.30.15 PM](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/f/ff15fb8aa0de0cb50ad87dd1696fb44d62c95c88.png)

Any ideas on what I could try to fix this?

---

<div class="post-metadata">

**Author:** ![Marcelo\_Altmann](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marcelo_altmann/32/11299_2.png) [@Marcelo\_Altmann](https://forums.percona.com/u/Marcelo_Altmann)\
**Post date:** [May 18, 2021, 11:12am UTC](https://forums.percona.com/t/problem-restoring-xtrabackup/10493/2 "2021-05-18T11:12:31Z")

</div>

Hi @betancourtl

By looking into your error message, seems like you are trying to start `mysqld` passing `--initialize` flag but the data-dir already has files on it. Since you are starting a MySQL using a restored backup as a source of data, you can skip --initialize.

If that doesn’t help to solve your problem. Please describe the steps you are taking to restore your backup as well as the full docker command used to start your container

---

<div class="post-metadata">

**Author:** ![betancourtl](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/betancourtl/32/3550_2.png) [@betancourtl](https://forums.percona.com/u/betancourtl)\
**Post date:** [June 3, 2021, 6:35pm UTC](https://forums.percona.com/t/problem-restoring-xtrabackup/10493/3 "2021-06-03T18:35:44Z")

</div>

Looks like the issue was related to file permissions. Thx for the help!
