News for hackers. Stuff that matters.
Re:An administrator accidentally deleted the production data... by arethuza on Wednesday March 23, 2016 @09:19AM (#11344115)
It's important to check that not only can you restore the database but you also check that it contains the data you think it contains.

Finding out that your backup consists of a perfectly backed up empty database isn't much fun!

Re:An administrator accidentally deleted the production data... by wlll on Wednesday March 23, 2016 @10:23AM (#11344703)
One of the first things I did at my current place was to add a Nagios check "Is the most recent backup size within x bytes of the previous one". It wasn't comprehensive, but was fast to implement and was later replaced with full restores and checks, but nevertheless a few weeks later it caught a perfectly formed tar.gz of a completely empty database due to a bug that would have continued creating empty archives until it was fixed.
Re:An administrator accidentally deleted the production data... by saidajigumi on Wednesday March 23, 2016 @02:10PM (#11346820)
This is a fantastic illustration of testing 101: often it's the dumbest possible checks catch huge errors. Get those in place before overthinking.

E.g. a team adjacent to mine years ago had a dev who made a one-character typo in a commit that went to production. Which caused many $MM to incorrectly flow out the door post-haste. The bad transactions were fortunately reversible with some work, but I was floored that there were no automated tests gating these changes. It wasn't a subtle problem. The most basic, boring integration test of "run a set of X transactions, check the expected sum" would have prevented that failure.

Re:An administrator accidentally deleted the production data... by chris_wot on Wednesday March 23, 2016 @06:57PM (#11348979)
All these threads are complete gold mines of years of hard won experience and system administration tips! Fascinating, especially the war stories I'm reading - both hilarious and horrifying in equal measure.
Re:An administrator accidentally deleted the production data... by KB1JWQ on Wednesday March 23, 2016 @11:01AM (#11345078)
And as Gliffy is discovering to their detriment, exactly how long said restore takes...
Re:An administrator accidentally deleted the production data... by vonklaus on Wednesday March 23, 2016 @12:08PM (#11345704)
Resonates. I didn't spend the extra $5 to get a USB 3.0 Flash Drive. Currently the read process for the image backup looks like it will take 4 hours to create write media, 2 to actually restore. Good lesson above about te restore being more inportant than backup.

Wish I learned that.