Resotre HA from corrupt SD Card (Pi4)

Hi there, i have a bit of an issue. I use HA on a Pi4 (SD card) and suddenly out of nowhere my whole system is down. After some investigation it seems like my installation on the sd card is corrupted.

Since I don’t have a recent backup I wonder if it is possible to resotre homeassistant in any possible way. I tought of copying the old supervisor folder from the old sd card and replacing the supervisor folder on the new installation. (Using linux to do so). Does this work or is there no way arround reinstalling everything from scratch?

Also planning on moving to an ssd setup in the future so this doesn’t happen again.

That would work. Don’t forget to copy the hidden files and directories too.

Hmm didn’t work - when hooking up a display the HA cli says supervisor won’t start - (I copied it using bash cp -a) maybe I should try to copy it recursively with cp -r?

Or is copying the supervisor folder too much and I should just try to copy the /homassistant folder?

This. ^^^^^