I have very bad habit of using command rm -fr to delete the files recursively on linux system and today it paid me off…

I was working on some stuff on my website www.tybcom.com, was updgrading some script, so to update i needed to delete all the contents in that directory so instead of deleting that perticular directory, I by mistake deleted whole site, nothing left at all on the site…total blank…

For 2 minutes I was totally shocked, didnt know what to do…but my cpanel daily backup saved me :) Just went to WHM and restored the backup of last night…

Site back up in 5 minutes :)

Just imagine if I didn’t have the backup then what kind of position it would have been….

So from now I have decided to never use rm -fr :D

btw this is for the ones who knows linux command…

This is the silly command which caused deletion of everything from www directory…

rm -fr * /home/user_home/public_html/scripts_folder/ (Stop laughing now lol)



Category : Personal Notes .
Date : July 1, 2005 | RSS 2.0. | trackback

3 Responses

    Tej says
    12-Jul-2005 at 1:39 pm
  1. I AM NOT LAUGHING BCUZ NOTHING TO LAUGH ABOUT

  2. Deep says
    12-Jul-2005 at 1:42 pm
  3. spammer spammer spammer

  4. Jesus says
    13-Jun-2007 at 10:55 pm
  5. I’ve done that a few times, lol

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .