Migrate Home Assistant Config/DB to new Pi

I’m currently running HomeAssistant on a Raspberry Pi and I want to upgrade to a Raspberry Pi 2. Keeping in mind that I am using the z-wave component, what do I need to copy over to the new config folder in order to preserve the database and entity names?

I’m confident I keep these:

automation
automation.yaml
configuration.yaml
customize.yaml
ecobee.conf
html5_push_registrations.conf
known_devices.yaml
plex.conf
scripts
scripts.yaml
secrets.yaml

But there are a few others I’m less sure of…

home-assistant.db
home-assistant_v2.db
OZW_Log.txt
pyozw.sqlite
www
zwcfg_0x0184d9b0.xml
zwcfg_0xdbf8d70c.xml
zwscene.xml

Thanks,
Devan

Actually, first just setup Home Assistant on the new Pi, and then shut Home Assistant down, because it auto runs after install, and automatically creates the /home/hass/.homeassistant folder.

Then, just delete the .homeassitant folder the /home/hass/ folder on the new Pi and copy the ENTIRE .homeassistant folder over from the old Pi into /home/hass/ on the new Pi, in its entirety. When you start up Home Assistant again, it will update any things that needs to be updated, but if you are coming over from a Pi with the same version of HASS, then it should just start up fine.

Just remember, don’t cherry pick from your .homeassitant folder. The .homeassistant folder itself IS your configuration folder. Just always move the entire folder over. I have made the move twice already from Raspberry Pi to Raspberry Pi, and it starts up looking exactly as it did on your previous device.

Thanks @jbardi, I guess what threw me off was the deps directory and the possibility that other architecture dependent files might exist in here. I’ll give it a shot

When I moved from my Windows setup to a Pi a few months ago, I only moved the files you mentioned in your original post and I was up and running again with one or two edits for paths. Granted, I was moving from one HW platform to another so this may be different than @jbardi’s take on it, but I did not move the entire folder and I was fine.

hi @Devanl, how did you manage that? I’m just about to move from the RPi2 to an RPi3 and am also concerned about the Z-Wave config and entity_ids from the OPZW Setup and so on. Did you copy the whole .homeassistant without the deps?

To start I moved everything but the deps. Later I realized I only needed latest copy of db and zwcfg files but better safe than sorry :slight_smile: