In a bizarre 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’ on Thursday, 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.
“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.
Well, Twitter couldn’t keep calm after witnessing such a massive blunder and poured out sympathies for Marco:
Man deletes his whole company with one bad line of code https://t.co/DbJZ21o0y2 pic.twitter.com/EH7cq5c1K9
— Popular Mechanics (@PopMech) April 14, 2016
At least you’re having a better day than this guy. Man accidentally ‘deletes his entire company’ with one command. https://t.co/QRj90zcxPX
— Aatish Bhatia (@aatishb) April 14, 2016
How to ‘DELETE’ your entire company with one line of bad code O_____O https://t.co/CT3y8aJ0J9 pic.twitter.com/YZeHShQVVp
— David Bonilla (@david_bonilla) April 15, 2016
The code ‘rm-rf’, the culprit?
The most destructive use of rm -rf ever? https://t.co/OtjXX6zPMi
— David Akerman M0RPI (@daveake) April 14, 2016
In lighter news, apparently “rm -rf” is code now.https://t.co/Cc0qyQAzaM
— Jared Gillis (@SeTec9) April 14, 2016
The old coding paean to nihilism: rm -rf. Oooops. https://t.co/AGHL1REA1t
— Sandi Logan (@SandiHLogan) April 14, 2016
Sound advice, may be?
Oh crap. “You don’t need technical advice, you need to call your lawyer.” https://t.co/DHoZUpiWX0
— Janne Wass (@JO_Wass) April 14, 2016