xirixiz / dsmr-reader-docker

DSMR Reader in Docker.
https://hub.docker.com/r/xirixiz/dsmr-reader-docker
112 stars 33 forks source link

Database is not restoring #335

Closed alexswart closed 1 year ago

alexswart commented 1 year ago

Support guidelines

I've found an issue and checked that ...

Description

last week my server is crashed and are not able to repair it luckily i had a backup with the dropbox integration of my database

i have reinstall dsrm-reader in Homeassistant as an addon and it works fine but only the database wont restore

Expected behaviour

get my historical data back to dsmr-readerreader

Actual behaviour

i dont see any historical data in dsmr-reader

Steps to reproduce

i have followed the next steps to repair it

  1. stop de DMSR Addon service
  2. Open pgAdmin4
  3. Create a database dsmrreader in pgAdmin4
  4. goto terminal
  5. goto /usr/share/
  6. upload the sql filt to /usr/share folder
  7. docker exec -it addon_77b2833f_timescaledb bash
  8. su - postgres
  9. psql -d dsmr < /share/test/dsmrreader-postgresql-backup-Tuesday.sql
  10. Start DSMR Addon

i havnt any problems with the steps above but i dont get the history of my old database

Docker info

no aditional info

Version

Docker compose

dsmr-reader 5.10.3

Container logs

no errors

Additional info

No response

alexswart commented 1 year ago

problem solved, the backup itself didnt contain any data....