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

Status: Not Logged In; Sign In

When Philadelphia’s Foul-Mouthed Cop-Turned-Mayor Invented White Identity Politics

Trump Wanted to Pardon Assange and Snowden. Blocked by RINOs.

What The Pentagon Is Planning Against Trump Will Make Your Blood Run Cold Once Revealed

How Trump won the Amish vote in Pennsylvania

FEC Filings Show Kamala Harris Team Blew Funds On Hollywood Stars, Private Jets

Israel’s Third Lebanon War is underway: What you need to know

LEAK: First Behind-The-Scenes Photos Of Kamala After Getting DESTROYED By Trump | Guzzling Wine!🍷

Scott Ritter Says: Netanyahu's PAINFUL Stumble Pushes Tel Aviv Into Its WORST NIGHTMARE

These Are Trump's X-Men | Dr. Jordan B. Peterson

Houthis (Yemen) Breached THAAD. Israel Given a Dud Defense!!

Yuma County Arizona Doubles Its Outstanding Votes Overnight They're Stealing the Race from Kari Lake

Trump to withdraw U.S. troops from northern Syria

Trump and RFK created websites for the people to voice their opinion on people the government is hiring

Woke Georgia DA Deborah Gonzalez pummeled in re-election bid after refusing Laken Riley murder case

Trump has a choice: Obliterate Palestine or end the war

Rod Blagojevich: Kamala’s Corruption, & the Real Cause of the Democrat Party’s Spiral Into Insanity

Israel's Defense Shattered by Hezbollah's New Iranian Super Missiles | Prof. Mohammad Marandi

Trump Wins Arizona in Clean Sweep of Swing States in US Election

TikTok Harlots Pledge in Droves: No More Pussy For MAGA Fascists!

Colonel Douglas Macgregor:: Honoring Veteran's Day

Low-Wage Nations?

Trump to pull US out of Paris climate agreement NYT

Pixar And Disney Animator Bolhem Bouchiba Sentenced To 25 Years In Prison

Six C-17s, C-130s deploy US military assets to Northeastern Syria

SNL cast members unveil new "hot jacked" Trump character in MAGA-friendly cold open

Here's Why These Geopolitical And Financial Chokepoints Need Your Attention...

Former Army Chief Moshe Ya'alon Calls for Civil Disobedience to Protest Netanyahu Government

The Deep State against Trump

A Post Mortem Autopsy: From A Diddy Party to a Pity Party

Whoopie Goldberg Blames Inflation on Grocery Store Owners, Calls Them Pigs


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: 143
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]