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

Status: Not Logged In; Sign In

Israel knew October 7th was going to happen

One of the World’s Richest Men is Moving to America After Trump’s Landslide Victory

Taiwan has a better voting system than America

Donald Trump on Tuesday nominated veteran, author, and Fox News host Pete Hegseth as the Secretary of Defense

"Warrior For Truth & Honesty" - Trump Names John Ratcliffe As CIA Director

"The Manhattan Project" Of Our Time: Musk And Vivek Ramaswamy To Head Department Of Government Efficiency (DOGE)

Trump, Rogan and French Fries at MsDonalds

President Trump wants a 10% cap on all credit card interest rates

Senator Ted Cruz STUNS the Entire Congress With This POWERFUL Speech (On the Border)

Kash Patel, Trump’s top choice for CIA Director, wants to immediately release classified

The £4 supplement that could slash blood pressure - reducing stroke, dementia and heart attack risk

RFK Jr. to be involved in oversight of health and agriculture departments under second Trump admin

​​​​​​​"Keep Grinding": Elon Musk's America PAC Will Continue Anti-Soros Push Ahead Of Special Elections & Midterms

Johnny B Goode

Russian Hypersonic Advances Remain Beyond Western Reach

US Preps for War vs China, Dusts-Off Deserted WWII Air Bases

Spain on high alert as deadly storms loom: new flood risks in Barcelona, Majorca, Ibiza.

U.S. Publication Foreign Policy Says NATO Knows Ukraine Is Losing The War

Red Lobster and TGI Fridays are closing. Heres whats moving in

The United Nations is again warning of imminent famine in northern Gaza.

Israeli Drone Attack Targets Aid Distribution Center in Syria

Trump's new Cabinet picks, a Homan tribute, and Lizzo's giant toddler hand [Livestream in progress]

Russia and Iran Officially Link Their National Banking Systems

"They Just Got Handed Fraudulent Books" - Ed Dowd Confirms Our Warning That Trump Is 'Inheriting A Turd Of An Economy'

They're Getting Worse! 😂

'Forever Chemicals' In US Drinking Water: A Growing Problem

Ex-Trump aides warn Israeli ministers not to assume hell back annexation in 2nd term

Netanyahu seeks to delay taking the stand, citing lack of time to prepare during war

Google inadvertently reveals Kiev regimes aircraft stationed, operating from Poland

Taiwan Mulls Massive $15BN Arms Package To Signal Trump It's 'Serious' About Defense


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: 144
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

#1. To: NeoconsNailed (#0)

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.........

Maybe I should get into growing Avocados. ;)

"When bad men combine, the good must associate; else they will fall, one by one." Edmund Burke

BTP Holdings  posted on  2016-04-14   21:34:50 ET  Reply   Trace   Private Reply  


#2. To: BTP Holdings (#1)

They're certainly harder to delete :-)

In Panama I took a short walk around our hotel. I saw an odd greenish thing on the sidewalk and then realized I was standing next to an avocado tree in somebody's yard.

We went to see a lawyer in a crummy shack in a typically rummy downtown. A mango tree was dropping gorgeous fruit on the parking lot and it was just rotting.

(Thank God they use a white man to illustrate it. The sky would fall in if 'twere a dame or nigg.)

Ted Crudz: The Mask of Sincerity

NeoconsNailed  posted on  2016-04-14   21:57:22 ET  (1 image) Reply   Trace   Private Reply  


#3. To: NeoconsNailed (#2)

What else would they use but a honky?

It's all whitey's fault.

“The most dangerous man to any government is the man who is able to think things out... without regard to the prevailing superstitions and taboos. Almost inevitably he comes to the conclusion that the government he lives under is dishonest, insane, intolerable.” ~ H. L. Mencken

Lod  posted on  2016-04-14   22:10:33 ET  Reply   Trace   Private Reply  


#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   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.)

Ted Crudz: The Mask of Sincerity

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


TopPage UpFull ThreadPage DownBottom/Latest


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