Home > Learning, Software Development > Not One Of My Better Moments

Not One Of My Better Moments

April 29th, 2009

I did something completely idiotic this afternoon.

While assisting one of my staff with a problematic installation of some open source software on a server, I decided to clean up certain files that we no longer needed with “rm -r *”.

Only to discover that I was in the wrong directory.

It didn’t help that we had been working directly on that computer for several days.

I was saved from losing a week’s work only by the fact that the backup from the morning was good (you never know with backups). We still lost a few hours of work, but that’s much better than it could have been.

Moral of the story: a) backup even more regularly than you think necessary, b) keep a local copy of your working files, c) don’t use “rm -r *” unless you’ve double checked what it will do.

If you like this article, please share it with others:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • MySpace
  1. April 30th, 2009 at 14:21 | #1

    You forgot a moral – never work on the production server!

    • Jeremy Lichtman
      May 1st, 2009 at 10:23 | #2

      The site thankfully wasn’t live yet. But we definitely learned a lesson here.

  1. No trackbacks yet.
blog comments powered by Disqus

Services

  • Software Development
  • Web Development
  • Social Media
  • Search Engine Optimization

Partner Companies

Follow Us of Twitter