20

It's 17:55... Did much work that day since I came in earlier than usual, so I could leave in time and do some shopping with the girlfriend.

A colleague comes in to my room, a tad distressed. He had accidentally ran a fixture script on a production environment database (processing a shipload of records per minute), truncating all tables...

Using AWS RDS to rollback the transaction log takes up about 20m. I had to do that about 5 times to estimate the date and time of when the fixture script ran... Since there was no clear point in time...

Finally I get to the best state of the data I could get. I log in remotely run some queries. All is well again... With minor losses in data.

I try to download a dump using pg_dump and apparently my version is mismatched with the server. I add the latest version to aptitudes source list of postgres repo and I am ready to remove and purge the current postgres client and extensions...

sudo apt-get remove post*
Are you sure? (Y/n) *presses enter and enters into a world of pain*

Apparently a lot of system critical applications start with post... T_T

Comments
  • 0
    Reading that apt-get command made me feel really anxious.

    I wish you a speedy recovery comrade.
  • 0
    Damn, I've been there too. I hope you were able to pull things back together.
  • 0
    You didn't continue the story about you and your girlfriend, but i think you forgot after that mess so it's fine.
  • 1
    @achehab A very angry girlfriend was the result. :(
Add Comment