# Restore not Working

**URL:** <https://forums.percona.com/t/restore-not-working/3815>\
**Category:** Percona XtraBackup\
**Created:** [October 13, 2014, 9:57am UTC](https://forums.percona.com/t/restore-not-working/3815 "2014-10-13T09:57:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![T-One](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@T-One](https://forums.percona.com/u/T-One)\
**Post date:** [October 13, 2014, 9:57am UTC](https://forums.percona.com/t/restore-not-working/3815/1 "2014-10-13T09:57:56Z")

</div>

Hi,

i try to restore from a backup from saturday, i allready prepared the backup via:

```auto

innobackupex --use-memory=16G --apply-log /mnt/mysqlbackup/2014-10-11_18-05-35/ 

```

and then i used copy-back:

```auto

innobackupex --copy-back /mnt/mysqlbackup/2014-10-11_18-05-35 

```

But it will stop with this error:

```auto
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

Get the latest version of Percona XtraBackup, documentation, and help resources:
http://www.percona.com/xb/p

IMPORTANT: Please check that the copy-back run completes successfully.
At the end of a successful copy-back run innobackupex
prints "completed OK!".

innobackupex: Error: Original InnoDB data directory '/var/lib/mysql/idbdata/' does not exist! at /usr/bin/innobackupex line 2141.

```

my Datadir is set to datadir=/var/lib/mysql in the config but i also have the innodb\_data\_home\_dir set to /var/lib/mysql/idbdata/

So something is messed up here. Because if i create the innodb\_data\_home and try to restore i get an error that /var/lib/mysql/ is not empty.

```auto
innobackupex: Error: Original data directory '/var/lib/mysql' is not empty! at /usr/bin/innobackupex line 2162.

```

How can i get my database restored now?

thanks in advance.

---

<div class="post-metadata">

**Author:** ![noodlesnz](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@noodlesnz](https://forums.percona.com/u/noodlesnz)\
**Post date:** [October 13, 2014, 3:53pm UTC](https://forums.percona.com/t/restore-not-working/3815/2 "2014-10-13T15:53:35Z")

</div>

You can try changing your innodb\_data\_home\_dir outside of /var/lib/mysql temporarily while you do the restore. You can always move this back into /var/lib/mysql after innobackupex has finished.
