How to lose and recover your blog in 30 minutes
antirez.com
antirez.com
This usually catches various common problems not quite as serious as this one... daemon doesn't start, kernel panics, more updates required after boot, etc.
The last time I had something like this happen, needing to restore from a weekly backup, Google or Archive.org had already cached everything new and I was able to recover it all without much hassle.
I've hosted my blog on S3 & CloudFront for a while now without issue. Comments are hosted by Disqus, and the static files are generated using Pelican.
Seriously, unless you're using your blog as a massive CMS, why not use static files?
You could do a lot worse than Redis for a blog's data store though. It's simple, fast, persistent, and easy to set up.
It's weird that the author lost his blog data from a reboot. Maybe he lost his Linode? It a bummer that he didn't have a recent backup of the redis database. Recovering a blog from Google's web cache doesn't sound like fun.
He was running Redis with persistence turned off by accident. In other words, he used an in-memory database.
Because regenerating the whole site all the time and manually uploading is annoying?
And if you do that, you might as well build a real blog with an editor integrated. And the ability to upload images. And the ability to edit entries and comments on the blog itself. Oh, and having comments, ping- and trackbacks in the database, how about using a bayesian spamfilter?
And no, this is not a massive CMS.
oh, static systems are for people that don't have fast databases ;-)
https://twitter.com/antirez/status/407184116275503104isn't that super ironic? that by configuring something in a stupidly elaborate way you had a problem...
redis may be super stable but cosmic ray neutrons are a thing and they will screw you one day eventually. :)
surely the real saviour here is the internet and its ability to keep crusty old data alive for you through caching and such...
My least proudest moment quote a while ago was when I realised I just binned a directory I had been writing some code in few files in it, But had them all open in an editor. Recreated the directory and hit save in each tab. phew, disaster avoided