Hello,
i have down some stupid stuff… and crashed my ssd with InfluxDB and the database.
I can not get run this setup, but I have restore the data on the ssd under var/lib/influxdb
Is it possible to get my data in a new database on a new influxDB?
I hope someone can help me.
Have a nice day
Martin
Hello @thoro,
What version are you using?
You should copy the restored data to the InfluxDB data directory on the new machine. Typically, this directory is located at /var/lib/influxdb
. Here’s how you can do it:
Copy the data:
sudo cp -r /path/to/your/restored/data/* /var/lib/influxdb/
Change the ownership of the copied files:
sudo chown -R influxdb:influxdb /var/lib/influxdb
You can then verify data integrity with the CLI or UI. Something like SHOW DATABASES
(depending on what version you are using )