By definition - you cannot. There is although something you can do to speed up the recovery - and that's an ongoing process.
That's of course, a false statement. Recent events around the big "Crowdstrike" crisis have demonstrated how cutting corners can occur even at the highest levels of the "IT food chain," i.e. in places where such "basics" should never happen.
Are you a developer or an entrepreneur? What if I stole your laptop right now - how much data could I extract from your disk?
The answer is: most likely! In most cases it's completely unintentional, but this example shows how easy it is to leave digital footprints while being totally unaware.
It's almost a classic: a sluggish webshop or online sales platform that breaks during seasonal peaks or when there is an unexpected surge in traffic.