Moving installation from virtual env to raspberry pi

Hi

Does anyone have experience moving installations from one source to another?

Currently running on a virtual environment in my PC. I believe the environment is a Linux server.

I’m looking to move to a pi, given costs of electricity. If I do a fresh install on pi, can I just copy configs over? Or is there another method I should follow.

Hoping to avoid reconfiguring all the devices

Thanks in advance for any help.

Yup, install a fresh copy of the latest version on your Pi, then copy over the entire /config directory, restart HA, and you should be golden. Biggest issues arise when you have USB devices like Bluetooth and/or serial COM: ports configured.

and you may get db errors. if so then just delete the “home-assistant_v2.db” and it should get recreated.

when I try to download the config directory through configurator, I get a 502:Bad gateway error. Does anything else need to setup before I can download files?