Migrate/Recover Home assistance config

I have been using home assistant on a rock64 armbian for a year.
for some data corruption, the memory card won’t boot anymore.

I’ve reinstalled the OS on a new card.

Is it possible to get the config/settings everything from the old memory card?
I can browse and see all files in there.

please Let me know how I can do this, if it is possible.

Thanks.

If you can use that card on a linux machine, mount the 8-ish partition of the memory card (‘/dev/mmcblk0p8’, label ‘hassos-data’).

Assuming you mounted it as /mnt/data, your config is in /mnt/data/supervisor/homeassistant

1 Like

sorry, I haven’t installed hassos.
it’s supervised install.
There’s just one partition.

there’s /home/homeassistant/ and /srv/homeassistant/

image

Should I just copy the /home/homeassistant/ to the new memory card?

What’s in “/home/homeassistant/.homeassistant”?
Anyway, the folder containing configuration.yaml is the one you want to copy over to the new install (and be sure to copy hidden folders, e.g., .storage as well)

1 Like
debian@t9:/mnt/corrupted/home/homeassistant/.homeassistant$ ls -a1
.
..
automations.yaml
backups
blueprints
.cloud
configuration.yaml
deps
.HA_VERSION
home-assistant.log
home-assistant.log.1
home-assistant.log.fault
home-assistant_v2.db
home-assistant_v2.db-shm
home-assistant_v2.db-wal
scenes.yaml
scripts.yaml
secrets.yaml
.storage
tts

sorry for asking again, should I just copy configuration.yaml and .storage
or the whole .homeassistant folder?
or the whole /home/homeassistant folder?

The whole content of the folder

1 Like