Man ‘deletes his whole company’ after typing wrong bit of code – Did He?

giphy

If ever there was a time you wish you could click ‘undo’, a situation like this would probably be it.

But while most people are often rescued by the quick ‘control+z’ command – seeing their entire document return to the screen after inadvertently deleting it all – there was seemingly no such saving grace for Marco Marsala.

The hosting provider wrote on help forum Server Fault that he had accidentally entered a code that seemed to have wiped his computers, including the websites of his customers.

The command, “rm -rf”, deletes everything it is told to and blocks the helpful warnings that usually inform the user that something is being deleted, he claimed. In this case, because he hadn’t specified what he wanted deleted, he explained it erased everything.

Marco Marsala typed "rm -rf", which deleted everything.
Marco Marsala typed “rm -rf”, which deleted everything. CREDIT: BLOOMBERG

“I run a small hosting provider with more or less 1,535 customers and I use Ansible to automate some operations to be run on all servers,” wrote Marco Marsala.

giphy (1)

Update: Was post a hoax? 

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

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

The response from the forum was far from positive.

“If you really don’t have any backups, I am sorry to say but you just nuked your entire company,” wrote Andre Borie.

Another, Michael Hampton, said: “You’re going out of business. You don’t need technical advice, you need to call your lawyer.”

One respondent pointed out – rather unhelpfully – that Mr Marsala should have kept the backup separate from everything else.

“Backups need to be offsite, offline, and incremental,” said Tim. “That you could delete them from your main server means they weren’t what I would call backups.”

Fuente: Man ‘deletes his whole company’ after typing wrong bit of code

Anuncios