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

Status: Not Logged In; Sign In

MAHA MEME

noone2222 and John Bolton sitting in a tree K I S S I N G

Donald Trump To Help Construct The Third Temple?

"The Elites Want To ROB Us of Our SOVEREIGNTY!" | Robert F Kennedy

Take Your Money OUT of THESE Banks NOW! - Jim Rickards

Trump Taps Tulsi Gabbard As Director Of National Intelligence

DC In Full Blown Panic After Trump Picks Matt Gaetz For Attorney General

Cleveland Clinic Warns Wave of Mass Deaths Will Wipe Out Covid-Vaxxed Within ‘5 Years’

Judah-ism is as Judah-ism does

Danger ahead: November 2024, Boston Dynamics introduces a fully autonomous "Atlas" robot. Robot humanoids are here.

Trump names [Fox News host] Pete Hegseth as his Defense secretary

Lefties losing it: Trump’s YMCA dance goes viral

Elon Musk: "15 Products You'll Stop Buying After You Know What They're Made Of"

Walmart And Other Major Retailers Canceling Billions In Orders Amid Fears Of A Dark Winter Ahead

Joe and Jill Biden deliver final 'kick' against Kamala Harris on election day

Relative importance of carbon dioxide and water in the greenhouse effect: Does the tail wag the dog?

Fired FEMA Employee Speaks Out, Says It Was Not Isolated Incident: Colossal Event Of Avoidance

Judge Merchan Hands Trump Historic Victory Donald Receives Stay on Felony Conviction

PNut the Squirrel was marked for death and decapitation from the start as rabies test results are negative

Yemeni forces strike military base in Tel Aviv with hypersonic ballistic missile

SheÂ’s lying. The FEC shows the payment

Speaker Johnson Orders Entire Biden Administration to Preserve and Retain All Records and Documents

Boeing has given up on diversity.

Trump Targeting up to 100,000 Deep Staters for Absolute Exile From DC

FBI Execs Rush to Retire After Trump Victory Leaves Them Shell-Shocked.

Witness to Tragedy: Huge Financial Incentives Led Hospitals to Use COVID Treatments That Killed Patients

‘Knucklehead’: Tim Walz returns to Minnesota ‘defeated'

Study Confirms the Awesome Destructive Power of Sugar in Utero Originally published via Armageddon Prose:

Ukraine mobilizing mentally challenged and deaf people lawmaker

COL. Douglas Macgregor : Trump and Netanyahu At Crossroads


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