Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joryhogeveen/home-assistant-merge-db
Simple tool to merge two HA SQLite DB's in case of a corrupted file
https://github.com/joryhogeveen/home-assistant-merge-db
Last synced: 4 days ago
JSON representation
Simple tool to merge two HA SQLite DB's in case of a corrupted file
- Host: GitHub
- URL: https://github.com/joryhogeveen/home-assistant-merge-db
- Owner: JoryHogeveen
- Created: 2022-08-09T06:50:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-15T12:41:23.000Z (9 months ago)
- Last Synced: 2024-11-02T12:34:11.549Z (11 days ago)
- Language: PHP
- Homepage:
- Size: 64.5 KB
- Stars: 9
- Watchers: 6
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# home-assistant-merge-db
Simple tool to merge two HA sqlite DB's in case of a corrupted file- Install docker-compose
- Easiest way is to install Docker Desktop, as it comes with docker-compose
- Navigate into the directory where the docker-compose.yml file is located (aka here) via terminal
- Shutdown Home Assistant
- copy your corrupted db file and the new one into the `src` directory
- Run `docker-compose up`
- Open http://localhost:9000 in your browser and follow the instructions
- When done move the new db file back to your Home Assistant directory, rename it to `home-assistant_v2.db` and start Home Assistant again
- Close the docker-compose terminal with `Ctrl+C` and run `docker-compose down` to clean up
- Done!### Do it manually
You can also use your own webserver to host the files manually, just copy the `src` directory to your webserver and do webserver things with it. If you want to go this route you probably know what you are doing.### Troubleshooting
All the data from the corrupt database is now "long-term statistics" in Home Assistant. This means that it will not show up in the normal views, but you can still access it via "show more" on most cards or entities.