# Backup and restore data in InfluxDB error

**URL:** <https://community.influxdata.com/t/backup-and-restore-data-in-influxdb-error/14138>\
**Category:** Store\
**Tags:** backup\
**Created:** [May 2, 2020, 5:12pm UTC](https://community.influxdata.com/t/backup-and-restore-data-in-influxdb-error/14138 "2020-05-02T17:12:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xoxoboyu](https://avatars.discourse-cdn.com/v4/letter/x/f1d935/32.png) [@xoxoboyu](https://community.influxdata.com/u/xoxoboyu)\
**Post date:** [May 2, 2020, 5:12pm UTC](https://community.influxdata.com/t/backup-and-restore-data-in-influxdb-error/14138/1 "2020-05-02T17:12:19Z")

</div>

I’m trying to learn how to backup and restore data. I’ve backed up the data from database “test”. Then I dropped the database “test”.

I’m using the control line to restore data:

_influxd restore -database test -metadir /Users/chenayu/.influxdb/meta -datadir /Users/chenayu/.influxdb/data /Users/chenayu/Desktop/test\_backup_

And it showed:

_Using metastore snapshot: /Users/chenayu/Desktop/test\_backup/meta.00_

_2020/05/03 01:06:02 Restoring offline from backup /Users/chenayu/Desktop/test\_backup/test._\*

It seemed that it worked but I cannot find the database “test”. I don’t know what’s really going on. Any suggestion would be helpful. Thank you.

---

<div class="post-metadata">

**Author:** ![xoxoboyu](https://avatars.discourse-cdn.com/v4/letter/x/f1d935/32.png) [@xoxoboyu](https://community.influxdata.com/u/xoxoboyu)\
**Post date:** [May 2, 2020, 5:13pm UTC](https://community.influxdata.com/t/backup-and-restore-data-in-influxdb-error/14138/2 "2020-05-02T17:13:30Z")

</div>

Additionally, the path-to-backup is _/Users/chenayu/Desktop/test\_backup_

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [May 6, 2020, 10:07pm UTC](https://community.influxdata.com/t/backup-and-restore-data-in-influxdb-error/14138/3 "2020-05-06T22:07:45Z")

</div>

Hello @xoxoboyu,  
Forgive me if this is a silly question, but what does  
`show databases` show?  
What version are you using?

---

<div class="post-metadata">

**Author:** ![xoxoboyu](https://avatars.discourse-cdn.com/v4/letter/x/f1d935/32.png) [@xoxoboyu](https://community.influxdata.com/u/xoxoboyu)\
**Post date:** [May 7, 2020, 2:49pm UTC](https://community.influxdata.com/t/backup-and-restore-data-in-influxdb-error/14138/4 "2020-05-07T14:49:16Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/e/e38d519d4eddb092e75aa8576987d5b61f396ad7.png)  
When I use “show databases”, the results are the databases which are created before. But no database named “test” could be found.

The version is v1.7.9.

Thank you.

---

<div class="post-metadata">

**Author:** ![rawkode](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/rawkode/32/5161_2.png) [@rawkode](https://community.influxdata.com/u/rawkode)\
**Post date:** [May 12, 2020, 12:10pm UTC](https://community.influxdata.com/t/backup-and-restore-data-in-influxdb-error/14138/6 "2020-05-12T12:10:28Z")

</div>

Hi,

How did you start InfluxDB after restoring the database?
