Experiencing the Aftermath Will Make You Tougher, Wiser, and Ready For Anything
One can learn from other people's mistakes, but the best learning form is when you make the mistake yourself and experience the aftermath.
Join the DZone community and get the full member experience.Join For Free
I was in charge of managing a dedicated server running Debian 7. The server hosts multiple websites with email services, the server also hosts multiple instances of a critical web application for a client who is running a business across different regions.
I quickly figured out that I had made the worst mistake ever!
One must learn a lot of lessons because of this disaster.
- The best recovery strategy would be to have a backup server ready for a swift recovery in case of disaster.
- Keep copies of backups in different locations.
- Choose the proper time frame for maintenance and warn the users beforehand.
- Use existing tools for maintenance and cleaning up space on your server.
- Always check that you are in the right directory (PWD command) before executing rm -r.
- Never use a directory other than /home, for arbitrary file handling. Let the proper tools like apt-get do the work for you.
One can learn from other people's mistakes, but the best learning form is when you make the mistake yourself and experience the aftermath. It will certainly make you tougher, wiser, and ready to take on other challenges in the future.
Published at DZone with permission of Abdelhamid A. See the original article here.
Opinions expressed by DZone contributors are their own.