Surely if you have a recent backup, just restore to that ?
If your HA install is so broken you can’t restore, just reinstall a base version and restore from that.
If you setup a fresh install of HA on a new computer, then take a backup from the old one, you can just restore the backup and everything is like it was before?
There might be some hardware differences such as which usb port is in use of you use say a ZigBee usb coordinator, but it should be fairly straightforward to sort that out in the hardware settings.
pi@raspberrypi:~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d19c297f5992 ghcr.io/home-assistant/raspberrypi4-homeassistant:2022.11.5 "/init" 4 weeks ago Up 2 days homeassistant
a099c2665d97 ghcr.io/home-assistant/armv7-hassio-observer:2021.10.0 "/init" 13 months ago Up 2 days 0.0.0.0:4357->80/tcp, :::4357->80/tcp hassio_observer
I’ve also had some issues with duckdns and portforwarding, but i assumed that it was unrelated since i’m able to log into home assistant but maybe not?