PDA

View Full Version : So, you think you're have a bad day?



hjmick
04-15-2016, 01:54 PM
This guy almost put himself out of business...


Marco Marsala had a very bad day. The proprietor of a small hosting service may have accidentally put himself out of business with a single line of bad code.

According to a post on ServerFault, a help forum for system and network administrators, Marsala raised an issue that he had after running a backup maintenance script on all his servers.

The command Marsala ran was "rm -rf," a fairly basic piece of code that deletes everything it's told to. The first part of the code, “rm,” tells the computer to remove. The "r" indicates that it should delete everything within a given directory, and the "f" means “force,” essentially telling the computer to bypass any warning signs that might otherwise prevent it from executing its process.

The results were not what he expected.

"All servers got deleted and the offsite backups too because the remote storage was mounted just before by the same script," he reported to the forum, before asking how he could recover in a timely manner...

His nightmare scenario arose primarily due to a failure to check his own code. Instead of directing the command at a particular part of the computer, Marsala left it undefined, prompting the command to simply destroy everything in its sight.

Buried in the replies—which have been cluttered with onlookers and others who want to get in on the fun of landing zingers on the guy who cratered his livelihood—there does appear to be a happy ending; Marsala hopped back in the comments to reply to one user to tell him, "we recovered almost all data!" He didn't provide any additional details on how



Oops...

Read it all:

A single line of bad code deleted this man's entire business (http://www.msn.com/en-us/money/technology/a-single-line-of-bad-code-deleted-this-mans-entire-business/ar-BBrMO47?li=BBnbfcL)

jimnyc
04-15-2016, 02:03 PM
Oh man, that sucks, but still funny since it wasn't me who did it! :laugh:

hjmick
04-15-2016, 02:12 PM
Oh man, that sucks, but still funny since it wasn't me who did it! :laugh:


You know the difference between tragedy and comedy?


Someone trips down the stairs? Comedy.


You trip down the stairs? Tragedy.

jimnyc
04-15-2016, 02:14 PM
You know the difference between tragedy and comedy?


Someone trips down the stairs? Comedy.


You trip down the stairs? Tragedy.

Nothing wrong with enjoying the misery of another. I try not to be vocal and outgoing about it, but shit happens. :laugh2:

Gunny
04-15-2016, 04:26 PM
Oh man, that sucks, but still funny since it wasn't me who did it! :laugh:

Doesn't mean we can't figure a way to pin it on you, f*cker.