Open-Building-Management / emoncms

emoncms home-assistant addon
MIT License
5 stars 1 forks source link

home assistant backup 1 #6

Closed alexandrecuer closed 1 week ago

alexandrecuer commented 1 year ago

to make a backup, a simple way is to stop the container (or the addon), so you can backup the /data/emoncms folder on the host with the tool you want....then you restart the container....

But how to backup if the container is running ? see https://github.com/home-assistant/addons/tree/master/mariadb maybe this is a clue ?

https://github.com/home-assistant/addons/commit/6a17fbf8b565ae9ee11a97de723f93c5b42a3d6e

more details on s6-rc -u change service_name and s6-rc -d change service_name on https://skarnet.org/software/s6-rc/faq.html

s6-rc -u change mariadb-lock runs a bundle service that actually launches these longrun services on the container : https://github.com/home-assistant/addons/tree/master/mariadb/rootfs/etc/s6-overlay/s6-rc.d/mariadb-lock-core https://github.com/home-assistant/addons/tree/master/mariadb/rootfs/etc/s6-overlay/s6-rc.d/mariadb-lock-post

alexandrecuer commented 1 year ago

used the HA backup seems to be very simple to use

image

press Create backup to add a new complete backup : image You can download the tar to see what's inside : image

image

image