223 points · by gfunk911 · 16y ago · 165 comments
Coding Horror experienced 100% data loss at our hosting provider, CrystalTech.
I have some backups and I'll try to get it up and running ASAP!
If anything, I'd say this is a sign not to work with CrystalTech.
The failures in this case appear to be:
1. Not taking the robustness of his blogs seriously enough (a LOT of people make this mistake, especially with their own content).
2. Being overly trusting of the procedures of his hosting provider. He thought he could trust his hosting provider's "backups" since they are a big company with lots of customers and he paid money for said backups, turns out he got ripped off.
3. Forgetting the maxim that you have to own your core competencies, and existence should always be a core competency.
If it wasn't Jeff Atwood but me, would it be more their fault? Or would I just be less disingenuous?
Nobody's calling them names, or threatening to take business elsewhere or anything. But it's good to get sunlight in there, show them consequences, when they fail you. When a company providing you with service fails, you're allowed to scream it from the rooftops if you feel like it.
Someone else pointed out in another comment, there's a good analogy to be drawn to Atwood's own words here: http://www.codinghorror.com/blog/archives/001079.html
http://74.125.93.132/search?q=cache:xGcmkwq9zUkJ:www.codingh...
After a mistake like this, it may be a sign that they will never mess up again.
It's also a sign that they lack experience and competence. So while your odds of suffering this problem are significantly lower, your odds of the infinite number of other problems are still troubling.
It's a lesson on what can and can't be "just bought".
Security and backups both need some top-down hands involvement. Also US recent experience dikes and air defenses are important too.
The people who made your car were legally required to test your model of car by crashing it into another one and making sure the airbags work. This is also too expensive to test yourself. One does not modify an airbag system at all without retesting it.
Your hosting provider has no legal requirement to test their backup system. At best, they have a contractual obligation. And they don't know how to test recovering your site, because testing whether it works is a different process for each site. Additionally, it's cheap to test backup procedures. Most people have a spare computer somewhere (maybe not in the data center), and it should only take a few hours to restore a copy of your site. Once a year. For Chris's sake, you could probably do it in the background and put a movie on.
You can't outsource liability.
If YOU are not testing YOUR backups. YOU fail.
(I backup my Slicehost account with their official service. If they die and my backup dies with it, that's fine; I don't have the time or money to do anything better.)
So you've tested whether your toaster has proper grounding and other safety precautions, in case it shortcircuits? I bet you haven't and that why you should stop repeating that stupid soundbite. We all 'outsource' liability all the time: we pay others to perform services for us and hold them responsible for the proper execution of those services. This includes hosting content and backing up that content.
2. Download my S3 backup script (or anyone's S3 Backup script) - http://github.com/leftnode/S3-Backup
3. Set up a cron to push hourly/daily/whatever tar's of your vhost's directory to S3.
Spend, like, $10 a month. Thats 30gb of storage, 30gb up and 30gb down. Now, I know that may not be a lot, but I doubt codinghorror.com had that much data.
http://paulstamatiou.com/how-to-bulletproof-server-backups-w...
In case anyone else is interested: http://code.google.com/p/ziplinebackup/ https://sourceforge.net/projects/automysqlbackup/
I wrote a bash script that uses s3sync (not written by me). You can thank the s3sync community for that! :-) http://s3sync.net/wiki
Confidentiality is only one aspect of security. Authenticity is also important in some cases: You might care if the NSA edits your backups so that after restoring them it looks like you said something you didn't really say.
A tip for folks using leftnode's setup: I didn't notice $gpgRecipient hidden at the end of the config file and chased around a bit looking for it.
I use it to backup all of my databases and entire vhosts directory every hour and night.
Let me know if you find any bugs!
http://github.com/astrails/safe
Dead simple to specify what to backup, drop the config in /etc/safe and add a cron job.
This does not sound like the tweet of a man with backups.
Why would anyone consider a backup on the same VM a backup at all?
All your data should be kept in two places, hopefully geographically disparate in case there's a building fire or horrible storm or what not.
You should also test it on a regular basis to make sure it exists (and so you know what to do when the shit hits the fan)
[Also makes me wonder how to test my host's backups]
Make your own, don't rely on someone else.
Cache of the relevant blog post: http://74.125.95.132/search?q=cache:yE0OdU1q6q4J:www.codingh...
He also frequently said he was the world's worst coder, so...
http://74.125.93.132/search?q=cache:2HHNAk2SB6EJ:www.codingh...
I have some backups and I'll try to get it up and running ASAP!"
Handling a failing disk is the job of a sysadmin, not a programmer.
Sometimes I'm extremely shocked at how cavalier professionals are at maintaining your data and I've worked with plenty.
And it isn't just the small ones either.
For the love of - insert your favorite deity here - please try to restore your backups, and try to do so on a regular basis. If not all you might have is the illusion of a backup.
It is a very easy trap to fall in to, and I really am happy this guy writes about it because it seems there are still people that feel that if their data is in the hands of third parties that it is safe.
That goes for your stuff on flickr, but it also goes for your google mail account and all those other 'safe' ways to store your data online. In the end you have to ask who suffers the biggest loss if your data goes to the great big back-up drive in the sky, the service provider or you. If the answer is 'you' then go and make that extra backup.
Sigh. When we will ever learn?
Unfortunately we don't have the images, but it looks like most of the site is back up at least. It will probably be more work for him to re-integrate it into the cms though.
http://74.125.95.132/search?q=cache:2HHNAk2SB6EJ:www.codingh...
It ends in what is now irony:
"If backing up your data sounds like a hassle, that's because it is. Shut up. I know things. You will listen to me. Do it anyway."
I'm not going to imply anything negative about him for losing the site temporarily. We all have "learning experiences"...
I just hope that when he does come back, he posts an insightful analysis of how he could have done more for his own reliability, rather than point fingers at a vendor.
That's not too far from saying that it's your fault if you get hit by a car while walking across a crosswalk because you didn't jump out of the way fast enough.
They failed, they failed in a catastrophic way, and they deserve to have it made public knowledge and to lose business over it. He should do a better job backing up his own stuff, but he's right to be angry with his hosting provider and to call them out.
An analysis posted after the fact can lay out where the technical failures took place, and that is the right time to describe issues with the host.
Pointing fingers in anger is very frowned upon in all organizations I work with. It implies a lack of ownership of your own products and a lack of maturity in handling your business affairs. Organizations that pursue blame before solutions do not have a positive culture -- they have a fear-based culture.
To answer your direct question, nothing he says will change the fact that the vendor screwed up. Your analogy is correct that it is the drivers fault if someone hits you, but flawed in that you cannot absolve all responsibility for your own safety when crossing streets.
When a vendor screws up, the level of professionalism that you portray when dealing with the situation says a great deal about yourself.
I really took issue with your initial comment because "pointing the finger" has some connotation of assigning blame unfairly or unreasonably; I 100% agree that companies with a culture of blame are poisonous, and that people should err on the side of accepting too much responsibility rather than too little, and do their best to not pass blame on to other people.
There's certainly a line, however, across which I think it's reasonable to call someone else out. Where that line is depends on the situation and your relationship: the bar for doing it within your team is astronomically high (you should basically always deal with those things internally), within even the same company is still incredibly high (likewise), but it's lower when it comes to vendor relationships. Where you draw the line is probably different from where I draw it.
So while I agree that he should have waited, I don't think that publicly expressing his anger with his hosting provider after the fact would count as "pointing the finger" or "passing the buck" or otherwise indicative of a lack of personal responsibility; to me it would be understandable frustration and anger out of having been so dramatically let down by a third-party you were contracting with. And honestly, that sort of negative public publicity is one of the strongest checks we have on companies, be they hosting companies or retail stores or any other type of establishment.
More to the point: even if he did have backups, if they really lost his data and were unable to recover it themselves, I think he'd still be justified in outing their failure publicly after the fact. But again, you're definitely right that he should have waited and given the host a chance to resolve the issue before saying anything.
/me does a git pull from his weblog
--PidGin128 via bmn
When people make mistakes and save them over the top, there among the smug laughter are a few people on the user's side reminiscing about long forgotten systems of old which have versioning filesystems by default so recovery is only a moment away.
I haven't seen any replies in this thread along those lines - everyone is putting it firmly on the system administrator or the user. Would it be so hard during an install for a program to say "and now enter an encryption password and an ssh server address where I can backup to nightly"? If it's so simple you can script it yourself in a few minutes, isn't it so simple that many/most systems should come with that themselves?
It's long past the time where "computer lost my data" "well you've only yourself to blame" should be considered an old fashioned attitude.
I didn't actually lose data like Jeff, but the datacenter the server was in decided to kill the power to the machine 2 weeks before the scheduled date (poor processes and a move to a different building) and I didn't get any notification before it happened. It took another 3 weeks for them to ship my machine back to me. Becuase I had nightly backups I was able to restore email and the photo site to a new Linode instance in a few hours. Without those backups I would have been hurting bad.
<p>inane comment showing <b>strong naivete</b></p>
<blockquote>copypasta</blockquote>
<img src=macro.jpeg>
<blockquote>copypasta</blockquote>
<p>Confident summary with <b>conclusive statement</b>
displaying no comprehension of the quoted text
</p>
<p>Buy a Visual Studio Plugin from my sponsor!</p>I guess I can not link to the blog post...
Well, I sort of can:
http://74.125.93.132/search?q=cache:9vLV7YkK14sJ:www.codingh...
This assumes you're running your blog on your own VPS.
Linus Tolvards
I guess people use Google's cache and archive.org these days :) Do not use SSH with Expect.
Do not use them here or there.
You will not use them anywhere.
Not just because of how much expect sucks: SSH tools leave out a --password option for a reason! Use passphrase-less RSA keys with a restricted account. ssh server tar zc /srv/http > http-backup.tar.gz
Yes, that's a remote command whose output is piped to a local file. With imagination, ssh, and shell-fu, one can get very far with backup automation and testing.But I wonder if this eventually turns out as a case study for "How to backup an entire site using the archives and search engine caches"
I know it's hard; but everything is _there preserved_ anyway. So it _is possible_
http://stackoverflow.com/questions/1890914/how-do-i-backup-a...
EDIT: Back at http://superuser.com/questions/82036/recovering-a-lost-websi...
This is really bad news for any service, but seriously... codinghorror.com (shakes head)
Rule 16. If you fail in epic proportions, it may just become a winning failure.
and then looking at cached results?