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 onincluding 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.
or rm -rf/OBAMA
let this be a lesson: coffee first, then bash
2. Keep if OFF except when storing something.
Wanna get away?
At least he didn’t type “Google” into Google, he could have taken down the entire Internet.
They are simply copies.
Sad but true. Another thing to keep in mind is the objective - recoverability. Backups are just part of the solution...not the objective.
Hardware is cheap but data is priceless. That is why I have multiple redundant backups.
First, all of my data is stored on a network array that automatically backs up all data as it is entered. If one of the drives in the array fails, I lose no data.
Second, every PC on my network has an extra hard drive and the network hard drive is automatically backed up to each of those drives at various times during the day. If multiple drives in my network array were to fail simultaneously, I would lose no more than a few hours of data and could be up and running immediately, using any one of my network PCs as a temporary server.
Third, I back up my network array to a removable hard drive every night (I have several) and I take the most recent one home with me each night. If my office burns down to the ground, I will lose no more than one day of data.
Fourth, every weekend I back up my most recent removable hard drive to my home network.
Finally, I have a cloud backup that also runs every night and encrypts and stores my data on a cloud drive account. If my entire city is wiped out all of my data is still stored somewhere else. I would never rely on a cloud drive as my primary backup (they are too slow to restore data from and are outside of my control), but it is a good last line of defense.
I wish they’d delete the internet and we could all get back to living our real lives ...
Gotta be quick! ;-)
lol that’s awful. They aren’t completely shielded since we can wipe them with a tape degausser. The ones not actively stored in the ADIC are kept in a huge safe.
Hopefully you’ll be OK until you carry them to the degausser.
My first company had (back a few decades) 1600 dpi and 6250 dpi tapes. They loaded up for a full disaster test in Colorado. Unfortunately, the Colorado drives would only take 6250 tapes and couldn’t read the older 1600 dpi tapes.
Oops.
You’re correct. Most “deletes” from an OS perspective simply delete the directory information. The file is logically deleted, but is still physically present on the disk. The data could possibly still be recovered. It won’t be cheap, but unless something else overwrites those sectors, it can be done.
WHoopsie!
When I work on something very sensitive, I never work alone. I always have my supervisor look over my shoulder. I press ENTER only when we both agree that this is the right thing to do.
Similarly, when my supervisor works on something sensitive, he calls me to look over his shoulder.
Those who do not learn from ~/.bash_history are doomed to repeat it.
AHA! You found the ROOT of the problem!......................
Wants to know? Hell she probably INVENTED IT!..........................
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.