The secretGeek Disaster Recovery plan
Jeff Atwood suffered a 'total data loss' of his blog. And here is how 90% of the world's bloggers slept that night:
Immediately thereafter I cracked open the box labelled 'the secretGeek Disaster Recovery plan' and inside I found only an empty biscuit wrapper and a few stale crumbs.
So, after many hours of labour, I present:
The revised SecretGeek Disaster Recovery plan:
Every Sunday night, at 10pm, syncback fires up and downloads the contents of this website onto my most reliable home computer. If the computer is asleep, it wakes up to perform this task.
When syncback is finished, it uses powershell to tweet that it's done. It twitters to a single-purpose account that no one else need follow but me ('secretGeek_bkup').
Every night, syncback wakes up the local computer and copies all of the family files (documents, photos, code and websites) onto external media. These are rotated fortnightly to an offsite location. We're prompted to do this by scheduled tasks in windows.
The most fun part was getting syncback to tweet -- so I want to share that with you here.
I used the script Out-Twitter.ps1 -- from Jeffrey Hicks of Sapien, with some cheap hacks I've added.
Jeffrey's original script was very clever. It stored the credentials (the username and password) in a very secure 'best-practice'-oriented way. But that bit of the script kept exploding for me, so I threw it out. Since the twitter account I'm accessing is very low value (it exists for one purpose only) I'm happy to hardcode the username and password into the script. A compromise like that is the sort of corner cutting upon which enterprise thrives ;-).
Here's the exact callout string I put into syncback.
powershell -command " 'backup complete (secretGeek) @secretGeek' | out-Twitter "
Getting the quotes just write was by far the most annoying part. Followed by getting the firewall to play nice.
What's your backup strat? And did the coding horror blogapocalypso inspire you to make it better?
Also -- this just in: an authentic photo of Jeff, taken at the moment he first realised his VM wasn't coming back:
'Eric' on Thu, 28 Jan 2010 11:12:05 GMT, sez: Can you talk about how you get syncback to wake up the local computer?
'Mikaela' on Thu, 28 Jan 2010 12:12:55 GMT, sez: Nice blog you got right here. Will bookmark it. I have a knack in gathering wonderful websites online. Most are about <a href="http://www.entertainoz.com.au/Artists/Comedians">comedians</a>, <a href="http://www.entertainoz.com.au/Artists/Mentalist">mentalist</a> and a lot more.
'David H' on Thu, 28 Jan 2010 19:03:05 GMT, sez: Is it wright to right 'write' in the rite way? Fsuking speling misteak nazis ;b PS - I wish I was smart enough to get jokes.
'Mr Grumpy' on Thu, 28 Jan 2010 23:42:38 GMT, sez: Back it up, you b*st*rds!
And offsite it too!
Good stuff SG.
PS. See you on Sunday.
'OMG' on Fri, 29 Jan 2010 09:56:08 GMT, sez: You talk about backup but you don't talk about RECOVERY
Joel Spolsky made it clear for you:
http://www.joelonsoftware.com/items/2009/12/14.html
"Let's stop asking people if they're doing backups, and start asking if they're doing restores."
'Adrian' on Mon, 08 Feb 2010 12:17:40 GMT, sez: Syncbackup rules
Might want to consider removing the offsite rotation strategy... that was the bit that was failing with my backups.
There are plenty of cheap options for reliable online storage.
|