Skip to content
Techie News UK Logo
Menu
  • Home
Menu

Man Deletes His Entire Company with a Single Line of Code

Posted on 15 April 2016

Here is a piece of news we hardly hear from the IT industry. In a world where every IT guy keeps hundreds of backups to make sure they have all the important files in case of a catastrophe, a man accidently deleted all the files that were present on his company’s servers through a single line of code. And this included his company’s files, his client data, and backups as well.

Marco Masala, who owns a hosting provider company, told the whole world about his tragedy on Server Fault, a website which is a forum for server experts.

The reason why Masala wrote about his problem on Server Fault was to ask the experts about their suggestions. But, instead of helping him, all the people online could say was that Masala had just deleted his entire company and invited an array of lawsuits from his clients. Needless to say, he should lawyer up.

This is what Masala wrote on the website – “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 line of code which deleted everything

The code rm –rf is infamous for deleting everything on a system if it’s not used properly.

The ‘rm’ tells the system to delete, ‘r’ deletes everything within a directory and ‘f’ forces the system to ignore all the warnings that might occur while deleting files.

The main problem with this code was Masala forgot to specify the location where it should run, and without a location, the code just ran on the entire system including main servers and backup servers.

Though backup servers shouldn’t have been deleted in a scenario like this, they were mounted to the main drives just before this code was run and that is why they got deleted as well.

A case like this proves how important it is to keep multiple backups at multiple locations, even if it might cost more. At every given time, a company should have three backup copies of its main server, one offline and two at remote locations. Also, backup strategies should be made in a way that any corruption or deletion doesn’t affect the backups at all.

If you could delete backups from the main server, then they shouldn’t be called backups at all since they won’t be solving their purpose.

Unfortunately for Marco Masala, it seems like he has just lost his entire company and it would take him a lot of time to bounce back.

Ritika
Ritika

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Norton Secure VPN Ad

Advertisement

Recent Posts

  • Most Watched Netflix Movies in the UK
  • 4 Best British Technology and Science YouTube Channels
  • Most Watched Netflix Movies in Ireland
  • 5 Weird Things That Surprise Tourist About Technology in Ireland
  • British And Irish Science Influencers on TikTok
Norton Secure VPN Ad

Advertisement

Categories

  • Apple
  • Apps
  • Books
  • Business
  • Cars
  • Cloud
  • Compliance
  • Entertainment
  • Featured
  • Future Tech
  • Gadgets
  • Gaming
  • General Tech
  • Global Tech News
  • Health
  • History
  • Industry Voice
  • Influencers
  • Management
  • Mobile
  • Open Source
  • Podcasts
  • Public Sector
  • Roundup
  • Science
  • Security
  • Software
  • Tablets
  • Techie Deals
  • Technology
  • UK & Ireland Tech News
  • Web
  • World
  • WTF
©2025 Techie News (UK and Ireland) | techienews.co.uk   Privacy Policy | Terms of Use | ***DMCA Policy***    🇬🇧 🇮🇪
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT