This one line of code just destroyed a whole company

Frustrated-20-year-old

A small hosting provider with 1,500+ customers was just accidentally destroyed by its owner with just one line of code.

Marco Marsala runs a web hosting company that looks after the servers and internet connections on which the files for websites are stored. He was just having a normal work day and after encountering a bug in his code, he executed a simple one-line command but instead of fixing the bug, the command ended up deleting his whole company.

How can a line of code delete a company? Well, the code Marsala ran was “rm -rf”, a simple command that can delete everything it is told to. Basically, the “rm” tells the computer to remove, the r deletes everything within a given directory and the f stands for “force”, instructing the computer to ignore the usual warnings that come when deleting files. It is normally used to only delete specific parts of the computer but due to a horrendous yet minor error, the code ended up deleting everything on Marsala’s computer, essentially removing all the data of the servers his company looked after.

“Last night I accidentally ran, on all servers, a Bash script with a rm -rf {foo}/{bar} with those variables undefined due to a bug in the code above this line.” wrote Marsala on a forum.

To make it even worse, the command also deleted all of his offsite backups because the remote storage was mounted just before by a backup maintenance script. As a result, every piece of data essential to his company’s existence is gone and as of now, it is nearly impossible for it to recover. As one commenter said, “I feel sorry to say that your company is now essentially dead”.

Backing-up important data is an essential piece of advice given by most technical experts but this incident shows that how sometimes, even having one backup isn’t enough.

UPDATE: In a shocking move, Marsala, the person who claimed to have deleted his whole company through the code mistake, has now revealed that the whole ordeal was simply a hoax. In fact, it was more of a marketing stunt to promote his own company, Ansible, that actually prevents such large scale mistakes, and that the situation he described “can not happen” with that tool.

Source- Independent

The post This one line of code just destroyed a whole company appeared first on TechJuice.



~ Shop by Category ~


Mens Fashion in Pakistan  Mens Latest Fashion in Pakistan  Mens Fashion Accessories Online Shopping in Pakistan  Mens Belts Online Shopping in Pakistan  Cufflinks Online Shopping in Pakistan  Mens Perfumes Online Shopping in Pakistan  Mens Sunglasses Online Shopping in Pakistan  Mens Wallets Online Shopping in Pakistan  Mens Watches Online Shopping in Pakistan  Mens Clothing Online Shopping in Pakistan Mens Wester Clothing Online Shopping in Pakistan  Export Stock Lot & Export Leftover in Pakistan  Mens Winter Collection 2019-2020  Mens Hoodies & Jackets Online Shopping in Pakistan  Mens Jeans Online Shopping in Pakistan  Mens Pants Online Shopping in Pakistan  Mens Shirts Online Shopping in Pakistan  Mens T-shirts Online Shopping in Pakistan  Mens Pakistani Clothing Online Shopping in Pakistan  Mens Nightwear & Undergarments Online Shopping in Pakistan  Mens Bathrobe Online Shopping in Pakistan  Mens Nightwear Online Shopping in Pakistan  Mens Pajamas Online Shopping in Pakistan  Mens Undergarments Online Shopping in Pakistan
Ladies Fashion Online Shopping in Pakistan  Ladies Latest Fashion Online Shopping in Pakistan  Womens Accessories Online Shopping in Pakistan  Ladies Handbags & Purses Online Shopping in PakistanLadies Perfumes Online Shopping in Pakistan  Ladies Sunglasses Online Shopping in Pakistan  Ladies Watches Online Shopping in Pakistan  Ladies Clothing Online Shopping in Pakistan  Pakistani Dresses Online Shopping in Pakistan  Pakistani Dresses Latest Designs & New Arrival  2018 Collection Pakistani Dresses in Pakistan  2019 Collection Pakistani Dresses Designs  Abaya & Hijab Online Shopping in Pakistan  Ladies Kurti Online Shopping in Pakistan  Original Dresses Online Shopping in Pakistan  Replica Dresses Online Shopping in Pakistan  Stitched Dresses Online Shopping in Pakistan  Unstitched Dresses Online Shopping in Pakistan  Bridal Dresses Online Shopping in Pakistan  Designer Dresses Online Shopping in Pakistan  Eid Collection Pakistani Dresses 2019-2020  Engagement Dresses Online Shopping in Pakistan  Mehandi Dresses Online Shopping in Pakistan  Nikah Dresses Online Shopping in Pakistan  Party Dresses Online Shopping in Pakistan  Walima Dresses Online Shopping in Pakistan  Wedding Dresses Online Shopping in Pakistan  Chiffon Dresses Online Shopping in Pakistan  Embroidered Dresses Online Shopping in Pakistan  Lawn Dresses Online Shopping in Pakistan  Linen Dresses Online Shopping in Pakistan  Net Dresses Online Shopping in Pakistan  Satin Dresses Online Shopping in Pakistan  Silk Dresses Online Shopping in Pakistan  Velvet Dresses Online Shopping in Pakistan  Indian Dresses Online Shopping in Pakistan  Ladies Summer Collection Pakistani Dresses 2019-2020  Ladies Winter Collection Online Shopping in Pakistan  Lingerie Online Shopping in Pakistan  Lingerie New Arrival 2019-2020 Collection  Ladies Bathrobe Online Shopping in Pakistan  Bikini Online Shopping in Pakistan  Bra Online Shopping in Pakistan  Bra Panty Sets Online Shopping in Pakistan  Panty & Thongs Online Shopping in Pakistan Bra by Color  Bra by Size  Bra by Types - Types of Bra  Body Shaper Online Shopping in Pakistan  Camisole Online Shopping in Pakistan  Sexy Lingerie Online Shopping in Pakistan  Nightwear Online Shopping in Pakistan  Nighty Online Shopping in Pakistan  Bridal Nighty Sets Online Shopping in Pakistan  Body Stocking & Leg Stocking Online Shopping in Pakistan  Tights Online Shopping in Pakistan  Ladies Undergarments Online Shopping in Pakistan