#Configuration lost after reboot

1 messages · Page 1 of 1 (latest)

visual talon
#

I run HA in a container on Linux. After a reboot of the host HA came back up, but seems to have lost all its configuration. I had to start with onboarding again.

I do have a backup, but it does not show up in the backup list, so I can not restore it.

Question: How can I restore a backup tar file?

devout swallow
#

Only manually.

#

Can you share your compose file?

visual talon
#

I found it. I had to unpack and restore the files by hand on the command line.

#

My backup was abit older, so I had to recreate some stuff.

#

How can I automate backups (create a daily backup automatically)?

devout swallow
#

Can you please share your compose file?

visual talon
#

services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /btrfs/VMs/HomeAssistant/ContainerConfig:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
devices:
- /dev/ttySonoffZigbee:/dev/ttySonoffZigbee
- /dev/ttyUSB0:/dev/ttyUSB0
restart: unless-stopped
privileged: true
network_mode: host

#

Here my compose file.

manic joltBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

visual talon
#

Thanks, much better!