Open-Building-Management / emoncms

emoncms home-assistant addon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

home assistant backup 1

alexandrecuer opened this issue · comments

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 ?

home-assistant/addons@6a17fbf

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

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