Well I've recovered the lost data, and the site should now be operating without problem. I've updated the administration scripts to give me more warning about problems like this. I'm still quite pissed about this, but I've solved the effects, at least all those that I'm aware of.