Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Man Deletes His Whole Company With One Bad Line of Code
www.popularmechanics.com ^ | Apr 14, 2016 144 | By Eric Limer

Posted on 04/14/2016 11:38:37 AM PDT by Red Badger

Thanks to just one mistake, he instructed the computer to delete everything it could find.

The next time you accidentally close a file without saving, just keep in mind that it could be worse. You could be Marco Marsala, a hosting provider who accidentally and irrevocably deleted his entire business with a faulty line of code.

As Marsala wrote on Server Fault, a forum where he was asking for help with the bind he'd gotten himself into, "I run a small hosting provider with more or less 1535 customers ...All servers got deleted and the offsite backups too."

A dire situation for certain, but one that Marsala was apparently hopeful he could rectify. "How I can recover from a rm -rf / now in a timely manner?" his plea for assistance ends.

That "rm -rf/" is the troublesome line that got Marsala into trouble. It is, essentially, a command that will forcibly delete data without asking for confirmation. As The Independent explains:

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.

... [Because] of an error in the way it was written, the code didn't actually specify anywhere – and so removed everything on the computer.

Why was Marsala running this command at all? It was actually part of his backup procedure, presumably intended to delete old backups. But due to the lack of specificity, it just deleted everything it could get its hands on—including customer websites. Because Marsala didn't have a backup somewhere that was completely isolated from what this particular command could touch, it all went away. It's probably gone forever, according to the experts on Server Fault.

The lessons to be learned here? A few: Always double check instructions to delete anything. Make sure you back up your important data offline. And last but not least, a computer will always do exactly what you tell it to do. If it doesn't do what you wanted, you are the one who messed up.


TOPICS: Business/Economy; Computers/Internet; Society
KEYWORDS:
Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-80 ... 101 next last
To: Red Badger

I think an air-gap back up would have helped here.


21 posted on 04/14/2016 11:47:18 AM PDT by Menehune56 ("Let them hate so long as they fear" (Oderint Dum Metuant), Lucius Accius (170 BC - 86 BC))
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

Remember: Jesus saves.


22 posted on 04/14/2016 11:47:48 AM PDT by glorgau
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

Computers are like Old Testament gods; lots of rules and no mercy - Joseph Campbell


23 posted on 04/14/2016 11:47:50 AM PDT by Anitius Severinus Boethius (www.wilsonharpbooks.com - Sign up for my new release e-mail and get my first novel for free)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

President Clinton’s new technology Czar.

(Really though. There are utilities that can recover deleted information. I doubt he wipes, not with a cloth, his hard drives.


24 posted on 04/14/2016 11:48:50 AM PDT by Organic Panic
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

25 posted on 04/14/2016 11:49:01 AM PDT by DuncanWaring (The Lord uses the good ones; the bad ones use the Lord.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Menehune56

What is that?..................


26 posted on 04/14/2016 11:50:37 AM PDT by Red Badger (WE DON'T NEED NO STEENKING TAGLINES!...........................)
[ Post Reply | Private Reply | To 21 | View Replies]

To: Red Badger
"Ohnosecond" - The fraction of time between making a mistake and realizing it.


27 posted on 04/14/2016 11:50:40 AM PDT by Bubba_Leroy (The Obamanation Continues)
[ Post Reply | Private Reply | To 1 | View Replies]

To: DuncanWaring

That’s a good one.

Try cleaning up a user’s machine with an awful virus, and then getting cursed at by management because you tried to help. After they tried to infect another machine or two with that one.

Oy


28 posted on 04/14/2016 11:51:33 AM PDT by SaveFerris (Be a blessing to a stranger today for some have entertained angels unaware)
[ Post Reply | Private Reply | To 25 | View Replies]

To: glorgau
He saves and then does a reformat in heaven.
29 posted on 04/14/2016 11:51:37 AM PDT by right way right (May we remain sober over mere men, for God really is our one and only true hope.)
[ Post Reply | Private Reply | To 22 | View Replies]

To: Red Badger; SaveFerris

Thanks to both of you for your most helpful,and easily understood,replies.

.


30 posted on 04/14/2016 11:51:41 AM PDT by Mears
[ Post Reply | Private Reply | To 13 | View Replies]

To: Red Badger
the r deletes everything within a given directory

Actually the "r" stands for "recursive", meaning it also deletes everything in all sub-directories.

Whenever I used a command such as that I would stare at it for many minutes before hitting enter... making absolute certain that I'm in the right starting place and I typed everything correctly.

Of course there are always your backups if you screw up, but restoring stuff is a pain so why go there.

31 posted on 04/14/2016 11:51:42 AM PDT by Cementjungle
[ Post Reply | Private Reply | To 1 | View Replies]

To: CondorFlight
Keep it on a disk or flashdrive that is NOT connected to any computer.

Flash drives are not reliable enough to be used as backup unless you have multiple redundancies. Perhaps SSD drives are an exception, put those little thumb drives you get at walmart are like printing important documents on toilet paper. I use rotating mechanical disk drives connected by USB.

32 posted on 04/14/2016 11:52:32 AM PDT by webheart (We are all pretty much living in a fiction.)
[ Post Reply | Private Reply | To 19 | View Replies]

To: Mears

Old lady here, too; and I consider all my craft patterns, recipes, etc., to be ‘important data’.

We use an external hard drive. You just have to keep backing it up on a regular schedule. (Many kinds, many prices on Amazon.)

-JT


33 posted on 04/14/2016 11:53:01 AM PDT by Jamestown1630 ("A Republic, If you can keep it.")
[ Post Reply | Private Reply | To 7 | View Replies]

To: Mears

Old lady here, too; and I consider all my craft patterns, recipes, etc., to be ‘important data’.

We use an external hard drive. You just have to keep backing it up on a regular schedule. (Many kinds, many prices on Amazon.)

-JT


34 posted on 04/14/2016 11:53:01 AM PDT by Jamestown1630 ("A Republic, If you can keep it.")
[ Post Reply | Private Reply | To 7 | View Replies]

To: DannyTN

It took 14 posts to achieve that observation.


35 posted on 04/14/2016 11:53:03 AM PDT by Tax-chick ("The world is full of wonder, but you see it only if you look." ~NicknamedBob)
[ Post Reply | Private Reply | To 14 | View Replies]

To: Red Badger
Ooh...left the backups mounted. That's gonna leave a mark. Best to have OFFLINE backups as well.

That is sort of the definition of a Very Bad Day.

36 posted on 04/14/2016 11:53:53 AM PDT by Billthedrill
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

Don’t be ‘That Guy’, hire a professional you can sue.


37 posted on 04/14/2016 11:54:28 AM PDT by lee martell
[ Post Reply | Private Reply | To 1 | View Replies]

To: HombreSecreto

I wish it would. My wife is standing in a very long line at the local IRS office waiting to speak to a rep about another person filing a tax return in her name. Something that could likely be handled over the phone, yet they made her go stand in a line that is so long that she probably won’t even get in the door today.

My gosh, I hate the IRS.


38 posted on 04/14/2016 11:54:39 AM PDT by al_c (Obama's standing in the world has fallen so much that Kenya now claims he was born in America.)
[ Post Reply | Private Reply | To 3 | View Replies]

To: Organic Panic
(Really though. There are utilities that can recover deleted information. I doubt he wipes, not with a cloth, his hard drives.

That was my thought as well. If it's just a delete, most if it should be recoverable, for the right price.

39 posted on 04/14/2016 11:54:40 AM PDT by PAR35
[ Post Reply | Private Reply | To 24 | View Replies]

To: Red Badger

Moron


40 posted on 04/14/2016 11:54:44 AM PDT by Resolute Conservative
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-80 ... 101 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson