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 😀

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)