As I was happily updating my theme on Hack Your Day I managed to overwrite the index.php file of my website danielpataki.com instead of the one for Hack Your Day. I only noticed now, so I had no undo option and no local copy, since I just made that page 2 days ago and hadn’t backed up yet, stupid, I know.
I a last desperate attempt I looked up the page on Google and clicked on cache to see Google’s view of my site, which luckily was the one I designed earlier. Instead of spending 5 hours pulling out my hair and shouting I managed to restore everything in 5 minutes.
If you’ve lost some website related code and you found out in about 24 hours you have a very good chance of recovering the data with Google’s cache. It depends on when Google’s spiders get to you, but if you get lucky you can retrieve everything.










