My old machine has died, but I have backups. I’d like to go with a new clean installation. Which files do I need to copy into the new installation to save my lights, switches, automations, …?
If you have full HA backups, depending on your installation method it may be as easy as install, upload backup, restart…
Are you Core, Container, Supervised, or HAOS?
If you have a FULL backup file made in your old HA (using the backup feature), just install HA on the new machine. During the onboarding process you will be asked, if you want to restore a backup.
If not, the /config directory is mandatory
It was installed on October 27, 2019 – I think. That’s judging from the dates on some of the files.
It’s supervised – started by
systemctl start home-assistant@HA
When I look at the status using systemctl status home-assistant@HA
it shows a bus error.
My backup is a system backup – not using the backup feature.
I don’t see a /config directory. There is a .homeassistant directory containing:
- yaml files
- a .HA_VERSION file with the contents: 0.100.3(homeassistant)
- an sqlite DB file: home-assistant_v2.db
- subdirectories: deps and tts
Then you are already in the config directory. Everything you see must be copied to the new machine
But, watch out, there are also hidden files in this directory, you have to make sure, they get copied too!