Author Topic: Bye bye data ....  (Read 761 times)

0 Members and 1 Guest are viewing this topic.

Mark

  • Custom Title
  • Administrator
  • Seagull
  • Posts: 27904
Bye bye data ....
« on: April 14, 2016, 03:59:36 pm »
Quote
Reader JustAnotherOldGuy writes: Marco Marsala appears to have deleted his entire company with one mistaken piece of code. By accidentally telling his computer to delete everything in his servers, the hosting provider has seemingly removed all trace of his company and the websites that he looks after for his customers. Marsala wrote on a Centos help forum, "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. 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 terse "rm -rf" is so famously destructive that it has become a joke within some computing circles, but not to this guy. Can this example finally serve as a textbook example of why you need to make offsite backups that are physically removed from the systems you're archiving?"Rm -rf" would mark the block as empty, and unless the programmer hasn't written anything new, he should be able to recover nearly all of the data. Something about the story feels weird.
TheSwamp.org  (serving the CAD community since 2003)

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 8722
Re: Bye bye data ....
« Reply #1 on: April 14, 2016, 05:13:24 pm »
I just read that one myself. ...man, I think I'd just about file for bankruptcy instead of taking time to post a question.
“Common sense is not so common.” ~Voltaire

--> Donate to TheSwamp.org <--

Tuoni

  • Gator
  • Posts: 3003
  • A programmer in a previous life