23 03/08
6:01 pm

When rm -rf doesn’t hurt…


I recently made an “oops” on one of my Linux servers, which looked similar to:

rm -rf /etc/

Under normal circumstances, this would be the death of the server as we know it. In my case, I was able to recover with 2 simple commands:

cd /
svn checkout file:///home/svn/repositories/server/etc etc

That’s it! The time it took to break & fix this server was under 30 seconds.

Going back to my previous post on source control for your server, the idea is simple: add any/all files that are absolutely necessary for you to get back up and running in the event of a catastrophe (i.e: accidental recursive file deletion).

RSS feed for comments on this post.


Sorry, the comment form is closed at this time.