Tips for using a server without breaking it
Published on 2026-09-12 by frfrand
Five habits that prevent most incidents on a server: one change at a time, backups, validate before reloading, rescue session, and notes.

Short answer: to avoid breaking a server, five habits are enough: make one change at a time, copy a file before editing it, validate the configuration before reloading, keep a second session open when touching access, and write down what you did.
Many production outages are not attacks or hardware failures: they are rushed changes made without a safety net.
The good news is that almost all of them can be avoided with habits, not expensive tools. These are five worth having.
1. One change at a time
It sounds obvious until your site is down at eleven at night and you touched nginx, the firewall, and an environment variable all in the same batch.
When something breaks after three simultaneous changes, you don't have one problem: you have three suspects and no way to know which one was responsible. Worse still, sometimes the cause is the interaction between two of them.
The practical rule: one change, verify, and only then the next one. It seems slower and ends up being much faster.
2. Never edit a configuration file without copying it first
cp /etc/nginx/sites-available/mi-sitio /etc/nginx/sites-available/mi-sitio.bak
One second. That's all it costs to have somewhere to go back to.
And a variant worth its weight in gold when the change is significant: copy the file with the date in the name (mi-sitio.2026-11-01.bak). When two months from now some strange behavior appears, you'll be able to compare against the version that worked.
If the server allows it, even better: keep the configuration files in a git repository. A "git diff" answers the question "what changed here?" in two seconds.
3. Validate before reloading
Almost all serious services come with a validation mode. It is rarely used and is what separates a scare from an outage:
nginx -t # checks nginx syntax sshd -t # checks SSH config systemd-analyze verify mi.service apachectl configtest
nginx -t tells you the file and line number of the error. If instead you run systemctl reload nginx with a syntax error, nginx rejects the new configuration and keeps serving with the old one, so it seems like nothing happened. The scare comes later: on the next restart or server reboot, nginx won't start and you'll be left without a site.
The correct order is always: edit → validate → reload → check that it responds.
4. Leave a second session open
This is the one that most often saves you from a real disaster.
When you are going to touch the firewall, the SSH configuration, or your user permissions, open a second SSH session beforehand and do not close it. Make the change in one, and try to log in from scratch in the other.
If you made a mistake and locked yourself out, the old session is still alive and you can revert. If you closed everything and got locked out, the only way out is the provider's console, and sometimes not even that.
Mental rule: before touching anything that controls your own access, ask yourself "if this goes wrong, how do I get back in?".
5. Note what you did
A formal document is not necessary. A NOTAS.md file on the server, or a Slack channel, or a comment on the ticket. Three lines:
2026-11-01 · raised worker_connections to 2048 in nginx.conf because 'worker_connections are not enough' appeared backup in nginx.conf.2026-11-01.bak
The real value appears months later, when someone (probably you) asks why that number is 2048 and not the default value. Without the note, the answer is "no idea, don't touch it". With the note, you can decide.
What they have in common
None of the five is technical. All are ways of leaving yourself an exit.
A well-managed server is not the one with the most ingenious configuration: it is the boring one, the one that does the same thing every day and that no one remembers. Boring is the greatest compliment you can give to production.
At ArduMaker, part of this comes built-in: commands launched on a VPS from the panel or via an MCP agent are recorded for 30 days, with who launched them, when, and what they returned. What you write in an interactive terminal or via SSH does not enter that record, so the note is still yours. And the other four habits, too.
A safe routine for the first day
If you just created a VPS on ArduMaker, start by checking system versions, updating packages in a planned way, configuring individual users, and confirming which ports are exposed. Then deploy a test application and verify that its logs are accessible.
The most important practice is not changing several things at once in production. Before modifying firewall, SSH, or network settings, keep a recovery method available. A small error in those components can leave you temporarily without access.
Frequently asked questions
What happens if I reload nginx with a syntax error? systemctl reload fails and nginx keeps the previous configuration; the problem appears on the next restart, when it does not start. That is why it is validated with nginx -t beforehand.
Why leave a second SSH session open? Because if a firewall, SSH, or permissions change locks you out, the session that was already open usually remains active and allows you to revert it.
Is it enough to make server backups? It does not replace copying the file before editing it: the backup returns the entire server to a previous point; the .bak copy lets you revert just that file in seconds.
Related: Firewall on Linux · What is APT.