Influxdb and power blackout

Hello,

i’m running influxdb since 1 week with rebooting my system sometimes and everything is working.
Today i have a power blackout and pi stop working, after this all data of the week are gone.
What can i do to prevent data lose?

thanks for helping

Hard to say why this might have occurred. But, check your database retention policy. If you set it to a week…when the instance comes back online, it will apply the retention policy and remove the data.

I’m using the default autogen retention policy. I think that’s more that the database crash and the data are after this corrupt. I’m working currently on a backup system to keep the data save.