# Fixing lost data in Persistence (influxdb)

**URL:** <https://community.openhab.org/t/fixing-lost-data-in-persistence-influxdb/86678>\
**Category:** Persistence Services\
**Tags:** curl, influxdb, influxdb-openhab\
**Created:** [December 1, 2019, 10:15pm UTC](https://community.openhab.org/t/fixing-lost-data-in-persistence-influxdb/86678 "2019-12-01T22:15:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tr12](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@tr12](https://community.openhab.org/u/tr12)\
**Post date:** [December 1, 2019, 10:15pm UTC](https://community.openhab.org/t/fixing-lost-data-in-persistence-influxdb/86678/1 "2019-12-01T22:15:47Z")

</div>

Hi, my hard drive filled up and temperature data logging to influxdb was stopped for a few days. I actually have the values stored in my syslog so I wanted to put them back in the database manually.

I understand there is a curl command to do this, but I am reluctant to play with it too much since I am scared of corrupting the database!

If a kind person would mind guiding me through this I would be very grateful.

To describe how it’s set up:

My database is called openhab\_db, username admin, and is password protected.  
If I use  
SHOW MEASUREMENTS

I get  
Room1Temp

If I use  
SELECT \* FROM Room1Temp WHERE time \>= ‘2019-10-31T00:00:00Z’ and time \< ‘2019-11-03T00:00:00Z’

I get  
time value  
----- -----  
1572480000324000000 22.11  
1572480004461000000 22.13

etc.

Thank you!

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [December 1, 2019, 10:29pm UTC](https://community.openhab.org/t/fixing-lost-data-in-persistence-influxdb/86678/2 "2019-12-01T22:29:44Z")

</div>

You’ll have better luck asking in and influxdb forum  
As this is not directly related to openHAB. It may be openHAB data but it is not and openHAB issue

---

<div class="post-metadata">

**Author:** ![tr12](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@tr12](https://community.openhab.org/u/tr12)\
**Post date:** [December 1, 2019, 10:34pm UTC](https://community.openhab.org/t/fixing-lost-data-in-persistence-influxdb/86678/3 "2019-12-01T22:34:35Z")

</div>

Good point, thanks, have posted to influxdb forums.
