Man deletes his entire company

cybermen__quot_delete_quot__campaign_by_degaspiv-d33hjoaA man deleted his entire company with a dodgy bit of code.

Marco Marsala wrote on a forum for server experts called Server Fault that he was now stuck after having accidentally run destructive code on his own computers and was told by the experts he really had destroyed his entire company.

He used the rm -rf command which is a piece of code that will delete everything it is told. The f stands for “force”, telling the computer to ignore the usual warnings that come when deleting files.

The code deleted everything on the computer, including Masarla’s customers’ websites, he wrote. Masarla runs a web hosting company, which looks after the servers and internet connections on which the files for websites are stored.

“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,” wrote Marco Marsala. “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.”

Marsala confirmed that the code had deleted all of the backups that he had taken in case of catastrophe.The drives that were backing up the computers were mounted to it so the computer managed to wipe all of those, too.

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

Most users agreed that it was unlikely that Marsala could recover any of the data. And as a result his company was almost certainly not going to recover, either.

“I feel sorry to say that your company is now essentially dead,” wrote a user called Sven. “You might have an extremely slim chance to recover from this if you turn off everything right now and hand your disks over to a reputable data recovery company.

Others agreed that perhaps Marsala was on the wrong forum and he should be talking to his lawyer.