Restore from fatal - hhaim/hass GitHub Wiki
How to restore from a fatal
The objective is to describe the steps to restore everything from a fatal (disk failure/hardware failure)
Install clean distro
- Install Ubuntu LTS (in my case 20.04)
- Add my user/password and make sure there is ssh without a password
- Change to static ip outside of dhcp range
configure vi /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
dhcp4: no
dhcp6: no
addresses: [10.0.0.xxx/24]
gateway4: 10.0.0.xxx
nameservers:
addresses: [8.8.8.8,8.8.4.4]
-
Install nfs-common
sudo apt install nfs-common
-
Install docker and docker-compose
Network docker-compose
- Sync netdc folder
- Open wiregaurd secret folder to remote cfg/wireguard
- Copy systemd service and restart
- Check
docker-compose up -d
and logs
copy dnet.service to /etc/systemd/system/
sudo systemctl enable dnet.service
sudo systemctl start dnet.service
Hass docker-compose
Unfortunately, there are a few steps here as Hass didn't make it simple to reconstruct everything
- Sync main folder to remote
- From hass create a user/pass and long live token and update the secret API for appd to work
- Load Solaredge and xiaomi sensors manually (in the past it was automatic, new version are going backward ..)
- Restore the influxdb db with the commands
- Copy dhass.service and restart the service
hopefully that it! (docker made it much simpler to restore it)