[Home]  [Headlines]  [Latest Articles]  [Latest Comments]  [Post]  [Sign-in]  [Mail]  [Setup]  [Help]  [Register] 

Status: Not Logged In; Sign In

The White House just held its first cabinet meeting in almost a year. Guess who was running it.

The Democrats' War On America, Part One: What "Saving Our Democracy" Really Means

New York's MTA Proposes $65.4 Billion In Upgrades With Cash It Doesn't Have

More than 100 killed or missing as Sinaloa Cartel war rages in Mexico

New York state reports 1st human case of EEE in nearly a decade

Oktoberfest tightens security after a deadly knife attack in western Germany

Wild Walrus Just Wanted to Take A Summer Vacation Across Europe

[Video] 'Days of democracy are GONE' seethes Neil Oliver as 'JAIL' awaits Brits DARING to speak up

Police robot dodges a bullet, teargasses a man, and pins him to the ground during a standoff in Texas

Julian Assange EXPOSED

Howling mad! Fury as school allows pupil suffering from 'species dysphoria' to identify as a WOLF

"I Thank God": Heroic Woman Saves Arkansas Trooper From Attack By Drunk Illegal Alien

Taxpayers Left In The Dust On Policy For Trans Inmates In Minnesota

Progressive Policy Backfire Turns Liberals Into Gun Owners

PURE EVIL: Israel booby-trapped CHILDRENS TOYS with explosives to kill Lebanese children

These Are The World's Most Reliable Car Brands

Swing State Renters Earn 17% Less Than Needed To Afford A Typical Apartment

Fort Wayne man faces charges for keeping over 10 lbs of fentanyl in Airbnb

🚨 Secret Service Announces EMERGENCY LIVE Trump Assassination Press Conference | LIVE Right Now [Livestream in progress]

More Political Perverts, Kamala's Cringe-fest On Oprah, And A Great Moment For Trump

It's really amazing! Planet chocolate cake eaten by hitting it with a hammer [Slow news day]

Bombshell Drops: Israel Was In On It! w/ Ben Swann

Cash Jordan: NYC Starts Paying Migrants $4,000 Each... To Leave

Shirtless Trump Supporter Puts CNN ‘Reporter’ in Her Place With Awesome Responses

Iraqi Resistance Attacks Two Vital Targets In Israels Haifa

Ex-Border Patrol Chief Says He Was Instructed By Biden-Harris Admin To Hide Terrorist Encounters

Israeli invasion of Lebanon 'will lead to DOOMSDAY' and all-out war,

PragerUMiss Universe Bankrupt after Trans Takeover: Former Judge Weighs In

Longtime Democratic Campaign Operative Quits the Party After What She Saw at the DNC

Dr. Lindsey Doe is teaching people that Pedophilia is a sexual orientation…


Science/Tech
See other Science/Tech Articles

Title: Man accidentally 'deletes his entire company' with one line of bad code
Source: the Phoenix that ever rises
URL Source: http://www.independent.co.uk/life-s ... line-of-bad-code-a6984256.html
Published: Apr 14, 2016
Author: Griffin
Post Date: 2016-04-14 21:29:26 by NeoconsNailed
Keywords: None
Views: 130
Comments: 5

A man appears to have deleted his entire company with one mistaken piece of code.

By accidentally telling his computer to delete everything in his servers, hosting provider Marco Marsala has seemingly removed all trace of his company and the websites that he looks after for his customers.

Mr Marsala wrote on a forum for server experts called Server Fault that he was now stuck after having accidentally run destructive code on his own computers. But far from advising them how to fix it, most experts informed him that he had just accidentally deleted the data of his company and its clients, and in so doing had probably destroyed his entire company with just one line of code.

The problem command was "rm -rf": a basic piece of code that will delete everything it is told to. The “rm” tells the computer to remove; the r deletes everything within a given directory; and the f stands for “force”, telling the computer to ignore the usual warnings that come when deleting files.

Together, the code deleted everything on the computer, including Mr Masarla’s customers' websites, he wrote. Mr Masarla runs a web hosting company, which looks after the servers and internet connections on which the files for websites are stored.

That piece of code is so famously destructive that it has become a joke within some computing circles.

Normally, that code would wipe out all of the specific parts of the computer that it was pointed at. But because of an error in the way it was written, the code didn’t actually specify anywhere – and so removed everything on the computer.

“I run a small hosting provider with more or less 1535 customers and I use Ansible to automate some operations to be run on all servers,” wrote Marco Marsala. “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.”

Mr Marsala confirmed that the code had even deleted all of the backups that he had taken in case of catastrophe. Because the drives that were backing up the computers were mounted to it, the computer managed to wipe all of those, too.

“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).”

Most users agreed that it was unlikely that Mr Marsala would be able to recover any of the data. And as a result his company was almost certainly not going to recover, either.........

Click for Full Text!(1 image)

Post Comment   Private Reply   Ignore Thread  


TopPage UpFull ThreadPage DownBottom/Latest

Begin Trace Mode for Comment # 5.

#4. To: NeoconsNailed (#0)

That piece of code is so famously destructive that it has become a joke within some computing circles.

Very true. The "rm -rf" is a scary command to run. Or should be. So much more so when a superuser.

But the real mistake was not having offsite / disconnected backups. Anyone could mistype something, but for a company that huge with 1000+ customers, not having off site or at least disconnected backups was managerial mistake that really did his company in.

Still, if it's not a virtual server, he should/could try sending the hard disks in for forensic salvaging. Probably get most of the data back that way.

Pinguinite  posted on  2016-04-15   0:23:25 ET  Reply   Untrace   Trace   Private Reply  


#5. To: Pinguinite (#4)

Right -- the journalism missing in action here. Aren't all HDs salvageable? I've read consistently through the years that whatever you delete is still there even if it could take big bucks to fully rescue it -- thus the oft- heard admonition that the only way to truly wipe a drive is a bullet hole.

It does seem inconceivable he totally deleted everything. Doesn't everybody in his business have backups of backups? Or a series of HDs backing up everything you do as it happens?

(Tsk, tsk..... should have been a handicapped left-handed unmarried pregnant teenage transsexual Afrasian Juess in that picture.)

NeoconsNailed  posted on  2016-04-15   1:56:42 ET  (1 image) Reply   Untrace   Trace   Private Reply  


Replies to Comment # 5.

        There are no replies to Comment # 5.


End Trace Mode for Comment # 5.

TopPage UpFull ThreadPage DownBottom/Latest


[Home]  [Headlines]  [Latest Articles]  [Latest Comments]  [Post]  [Sign-in]  [Mail]  [Setup]  [Help]  [Register]