Skip to content

Local backup of solectrus #3014

Answered by ledermann
Timokirch asked this question in Q&A
Apr 14, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Great that you have found a way to back up InfluxDB with the CLI. This is the right way to create a local backup of your measurement data.

As I tried around further I deleted the container and the volume of influx, recreated and wondered that all data & settings of solectrus are still there (without a restore).

This seems to be caused by caching. Every InfluxDB query is cached in Redis for performance reasons. So, when you delete the InfluxDB volume, the cache results are still present.

If you change data in InfluxDB in an unusual way (e.g. deleting the volume, importing historical data, etc.), you must then clear the Redis cache by running this command:

docker exec -it solectrus-redis-…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Timokirch
Comment options

@ledermann
Comment options

@weinberg64
Comment options

@ledermann
Comment options

Answer selected by Timokirch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants