Migration from pi4 to new hardware

Hi all,

I have decided to buy a new hardware and say goodbye to pi4.

My pi4 is located at 192.168.1.23:8132

Is it enough to create full backup and assign the ip above to my new devices via my router or should i do more before the migration?

I am so scared of losing connection to my dashboard :grinning_face_with_smiling_eyes:

Ive done a few hardware migrations over the years.

  1. Create a backup, download the backup and store it in two separate locations. (you should be doing this regularly already)

  2. Copy the YAML based config of any add-ons to a file so they can be easily restored if it doesn’t happen automatically.

  3. Get HA loaded on the new system (not a full restore but get it installed and to the logon screen).

  4. Properly shutdown the Pi4 (don’t just pull the plug). Keep the Pi ready to go incase things go south. If they do go south with the new machine, you should be able to plug the Pi4 back in and be back up and running.

  5. Re-assign 192.1689.1.23 to your new HA hardware (restart the new HA hardware as needed to get it showing up with the 192.168.1.23 IP).

  6. From the initial setup screen, restore your backup

  7. Be patient and wait. Depending on the power of the new machine and size of your configuration, it could take awhile to restore the backup.

  8. Once fully restored, log in and see if everything restored correctly. I generally have seen the core config restore every time add-ons can be a different story in my experience. Things with hardware specific configurations may not restore correctly and need adjustment.

Hope that helps, generally its a quick and easy affair.

3 Likes

Thank so much. So detailed. Thank you!

In case you have Z2M/Zigbee devices in place you should also backup its configs and database! You’ll find those files inside /usr/share/hassio/share/zigbee2mqtt

  • configuration.yaml
  • database.db
  • devices.yaml

Shutdown Z2M before copying those files over!

On the new system copy above 3 files into the new zigbee2mqtt-folder before starting Z2M the first time.

This saves you from re-pairing and reconfiguring your Zigbee network.

3 Likes

Thanks for the steps.

I’ve just migrated from a Raspberry Pi 4 to an Intel NUC, and it worked like a charm.
The only addition I would make, is to do a complete reboot after the restore process. None of my add-ons would start, but I quickly found out that it’s a known problem after a restore, and the complete reboot did the trick :muscle: (Add ons not working properly after snapshot restore - #19 by kennethpangky)