Restoring configuration

My SD card failed on me for the 2nd time now.
I have a snapshot but not a recent one so i would rather restore the files manually…
I managed to get all the files from the home assistant folder, created a new home assistant onto a new sdcard and tried to replace the files in the home assistant folder.
The problem is after doing that i cant get past the login screen on boot.
What is the correct procedure to do this?

I know you said you wanted to do everything manually but perhaps it would be easier to restore an older backup and then copy your newer files over that working system.

Did you copy .storage folder?

Why not just restore to same version then upgrade?