Man accidentally wipes out his company with single line of bad code

A man running a small hosting company has accidentally wiped out his whole business with a single line of bad code.

Marco Marsala, who had 1,535 hosting customers, by mistake instructed his computer to delete everything on his hosting servers. This included all backups.

“I run a small hosting provider, and I use Ansible to automate some operations to be run on all servers,” said 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.”

“All servers got deleted and the off-site backups too, because the remote storage was mounted just before by the same script (that is a backup maintenance script)”.

More on software

Microsoft Edge browser to block Flash ads

Microsoft Edge not getting a native ad blocker

Latest news

Partner Content

Show comments

Recommended

Share this article
Man accidentally wipes out his company with single line of bad code