I wanted to try our Home Assistant but dur to the chip shortage I couldn’t get my hands on a Pi so I installed HA in a virtual machine on an old PC running Ubuntu.
I’ve setup a few things like DuckDNS and the free Alexa integration.
Just had a stock notification so a Pi4 4GB is on the way to me. Can I do a backup from HA on my VM and restore it to HA on the Pi or would I need to start a fresh because of the hardware change?
Backup is generally hardware agnostic. It should work, but is dependent on your installation method. Ive restored my configuration and n a number of devices with impunity…
Do yourself a favor and install the Google Drive backup and run a full backup into Google storage.
Your restore process is then:
Drop HAOS image on pi
Login as new user
Install and configure Google drive backup addin.
Restore from full backup you took above
Restart
Log in and fix whatever is not working (like paths to USB sticks etc.)as necessary but the list should be short.
make a full backup from your vm. grab that file and copy to the usb key. many ways of doing this… imho, easiest is if you have samba addon on your home assistant (if you don’t, you should regardless of this), and grab the backup from the samba share and copy it down to your usb key.
then on your pi4, pop it in to the usb slot… during first boot of homeassistant it will prompt you asking if you want to restore a backup. with the usb key in, it automatically found it and let me restore.