Man deletes his whole company after typing wrong code

Image
Press Trust of India London
Last Updated : Apr 15 2016 | 2:57 PM IST
In a bizzare incident, a man deleted his entire company and the websites of his clients by mistake after typing a wrong bit of code on his computer server.
Marco Marsala, ran a web hosting company with over 1535 customers that looks after the servers and internet connections on which the files for websites are stored.
He wrote on a forum for server experts 'Server Fault' yesterday, that he was stuck after accidentally running destructive code on his own computers, including the websites of his customers.
The code, "rm -rf", deleted everything and blocked the helpful warnings that usually inform the user that something is being deleted. He hadn't specified what he wanted deleted, it erased everything, The Independent reported without mentioning where the company is based.
"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," he said.
He confirmed that the code had even deleted all of the backups that he had taken as the drives that were backing up the computers were mounted to it, the computer managed to wipe all of those too.
Most experts informed him that he had just accidentally deleted the data of his company and its clients, and in doing so had probably destroyed his entire company with just one line of code.
"All servers got deleted and the offsite backups too because the remote storage was mounted just before by the same script (that is a backup maintenance script)," he added.
*Subscribe to Business Standard digital and get complimentary access to The New York Times

Smart Quarterly

₹900

3 Months

₹300/Month

SAVE 25%

Smart Essential

₹2,700

1 Year

₹225/Month

SAVE 46%
*Complimentary New York Times access for the 2nd year will be given after 12 months

Super Saver

₹3,900

2 Years

₹162/Month

Subscribe

Renews automatically, cancel anytime

Here’s what’s included in our digital subscription plans

Exclusive premium stories online

  • Over 30 premium stories daily, handpicked by our editors

Complimentary Access to The New York Times

  • News, Games, Cooking, Audio, Wirecutter & The Athletic

Business Standard Epaper

  • Digital replica of our daily newspaper — with options to read, save, and share

Curated Newsletters

  • Insights on markets, finance, politics, tech, and more delivered to your inbox

Market Analysis & Investment Insights

  • In-depth market analysis & insights with access to The Smart Investor

Archives

  • Repository of articles and publications dating back to 1997

Ad-free Reading

  • Uninterrupted reading experience with no advertisements

Seamless Access Across All Devices

  • Access Business Standard across devices — mobile, tablet, or PC, via web or app

More From This Section

First Published: Apr 15 2016 | 2:57 PM IST

Next Story