Fresh Hassbian Image

I worked on setting up a new Hassbian install on a different SD card to update to the latest Raspbian version and python. I had backed up my config files from my other SD card and tried to restore them on the new install. Mostly everything works but was having trouble with my Amcrest camera and my custom renamed z-wave items had been reset. I tried to restore the Home Assistant DB and the ozw sqlite file and that didn’t seem to make anything better. So my question is what can I back and restore on the new install of Hassbian. I’ll keep tinkering but was hoping to be able to be able to restore from one Hassbian install to another. Oh and both installs were on the same Home Assistant versions.

Everything in the config folder should be moved from old to new.

I think you need the zwcfg_xxxxxxx.xml file to keep the names and devices

So would the process be to boot up the new hassbian instance, wait the 5-10 minutes, stop home assistance, replace all files in the home assistance folder and start home assistance?

I don’t think it matters just make sure all the files and folders are copied, tho’ I don’t bother with the database or log files

My method for ‘rebuilds’ which is platform independent…

1 - Install and update OS and HA (in the case of Hassbian HA is already installed)

1a - (possibly not required, depends on your config) modify the OS or external dependencies. As an example, if you’re using Zwave you may need to do apt-get install something-or-other

2 - run HA for the first time, leave it until the ‘default’ interface comes up and make sure it is working.

3 - stop HA, delete the entire contents of the .homeassistant directory. Copy in your configuration.

4 - restart HA.

Bare in mind that after step 4 it will take a while to start as it will have to install all the dependencies for all the components you use, but you can watch the process in a terminal with

journalctl -f -u homeassistant-sevice-name

(With the correct name for the service)

5 - check everything is working and troubleshooting. (troubleshooting usually involves revisiting step 1a)

Only takes about an hour (especially if you already have a list of the dependencies you need for step 1a)

1 Like