Guides

Server runbooks and SOPs: documentation a small team will actually use

In this article10 sections

Ask the people running a small business’s servers where the documentation is, and you will hear one of three answers: “In someone’s head”, “In an old email”, or “There is a document but nobody has opened it in two years”. All three have the same cost, and it arrives at the worst possible time: at three in the morning when the site is down and the person who knows is on a plane, or the week a developer leaves and takes the only copy of how things work with them.

Documentation does not fail because people are lazy. It fails because it is written like a school essay, kept somewhere nobody looks, and never tested. This guide describes documentation that small teams, agencies and freelancers can keep up: short procedures with commands in them, one page per task, a site sheet for every project, and a few habits that keep it true.

What good documentation is for

Think of the people who will use it, and the situation they will be in:

  • You, in a year, having forgotten why that odd setting exists.
  • A colleague or freelancer on their first day, who needs to know what runs where and how to ask for access.
  • Whoever is on call during an incident, stressed, with no time to think. They need steps, not background.
  • A client or auditor, who wants to know how backups, access and updates are handled.

Write for the stressed person at three in the morning, and everyone else is served too.

What to document: seven things

  1. An inventory. Every server, site, domain and service: where it is hosted, what it runs, who owns it, and when its renewals fall (domain, certificate, licences, hosting plan).
  2. How things connect. A simple diagram or list: the domain points to Cloudflare, which points to this server, which runs the web server, PHP and the database. Five lines are enough.
  3. How to get in. Who has access, to what, and how it is granted and removed. Name the password manager; never put passwords in the document.
  4. Runbooks. Step-by-step procedures for routine tasks and known failures (below).
  5. Backups and restore. What is backed up, where it goes, how long it is kept, and how to restore it, with the date it was last tested.
  6. A change log. A dated list of what changed and why. It is the most valuable page you will ever read during a mystery outage.
  7. Contacts and escalation. Who to call for the host, the registrar, the payment provider, and the client.

Runbooks: one page, one task

A runbook is a recipe. It should be possible to follow it with no prior knowledge of the system and no need to ask anyone. Use the same structure every time so that people know where to look:

Title: Restore a website from backup

Purpose
  Bring a site back from last night's backup after data loss or a failed update.

When to use it
  The site is broken and cannot be fixed within 30 minutes, or data was deleted.

Before you start
  - Access to: the backup storage, the server (SSH), the password manager.
  - Tell the site owner a restore loses changes made since the backup (note the time).

Steps
  1. Put the site in maintenance mode.
       wp maintenance-mode activate
  2. Take a copy of the broken state (for evidence).
       tar czf ~/broken-$(date +%F-%H%M).tar.gz /var/www/example.com
       wp db export ~/broken-$(date +%F-%H%M).sql
  3. Download the newest good backup from the backup storage.
  4. Restore the files and import the database.
       wp db import /path/to/backup.sql
  5. Clear caches and leave maintenance mode.
       wp cache flush && wp maintenance-mode deactivate

Check it worked
  - Home page and the checkout load; a test order completes.
  - Error log is quiet for 10 minutes.

If it goes wrong
  - Put the broken copy from step 2 back, and call <name> on <number>.

Owner: <name>      Last tested: 2026-09-12      Next review: 2026-12-12

What makes this work: the exact commands (people copy them under stress), the expected result of each stage, a way back, an owner, and a “last tested” date. A runbook without a test date is a guess.

Start with the procedures you would be sorry not to have:

  • Restore a site or database from backup.
  • The site is down: first checks (see your website is down: the first 15 minutes).
  • Renew or replace a certificate.
  • Add and remove someone’s access.
  • Deploy a change and roll it back.
  • Move to a new server.
  • Respond to a hacked site.
  • Domain and DNS changes, including what to check before changing nameservers.

A site sheet for every client or project

For agencies and freelancers, the most useful single page is a site sheet: one per project, the same fields every time, so that anyone can pick up any site. A template:

Site: example.com                          Client: Example Ltd
Contact: Jane Doe, [email protected], phone
Registrar: <name>, account owner: <client / us>, expires: 2027-03-04
DNS hosted at: Cloudflare (account: <name>)
Hosting: <provider>, server <name>, plan <plan>, region
Stack: Ubuntu 24.04, NGINX, PHP 8.3-FPM, MariaDB 10.11, WordPress 6.x
Site folder: /var/www/example.com        Database: example_wp
Mail: Google Workspace (MX at Google), transactional via SES
Certificates: Let's Encrypt, auto-renew checked: 2026-10-05
Backups: nightly to <storage>, 14 days kept, last restore test: 2026-09-12
Monitoring: uptime monitor <name>, alerts to <who>
Deploy: git (repo <name>), staging at staging.example.com
Special notes: checkout uses <gateway>; the contact form needs SMTP; do not update plugin X
Access: see password manager entry "Example Ltd", who has it: <names>
Last reviewed: 2026-10-30

Fill it in the day you take a project on, and update it whenever one of these facts changes. When a client’s domain is about to expire or a developer leaves, the answer is a minute away.

Incident notes and short post-mortems

After every real problem, write five lines in the change log, or a page for a bigger one:

  • What happened, with times.
  • Impact: who and what was affected.
  • Cause: the real one, not the first guess.
  • Fix: what you did.
  • Prevention: what changes so that it does not happen again, and who does it by when.

Keep them blameless: the goal is a better system, not a culprit. A few of these a year turn into your best runbooks.

Where to keep it

The best place is the place people already look, and that you control:

  • A git repository of Markdown files. Simple, versioned, searchable, works offline, and the history shows who changed what. Good for technical teams.
  • A wiki or knowledge base (self-hosted or hosted) with a search box, for teams who include non-developers.
  • Not a pile of attachments in email or chat.

Whatever you choose: one place, a clear folder structure, and a README at the top that says where things are. And keep secrets out of it: record that a credential exists and where it is stored, never the credential itself.

Habits that keep it true

Documentation rots the day after it is written unless you build a few habits:

  1. Write it while you do it. The best moment to document a procedure is the first time you do it, with the commands still in your history.
  2. Fix it when you find it wrong. If a step failed, correct the page before you close the terminal. Make this a rule for the whole team.
  3. Test runbooks. Once a quarter, follow one without the author. Update “last tested”. The dull ones (restore, certificate, access removal) matter most.
  4. Review on a schedule. A calendar reminder every quarter to look at the inventory, the contacts and the renewal dates.
  5. Retire the old. Delete or archive pages that no longer apply. A wrong page is worse than none.
  6. Turn stable procedures into scripts. When a runbook is run often and rarely changes, automate it, and let the page say how to run the script.
  7. Include documentation in “done”. A project, a migration or a new server is not finished until its page exists.

For a handover to a freelancer or a new hire

A good handover pack is short: the inventory and site sheets, how to get access (and what access they get), the runbooks that apply to their task, the contact list, and the rules (“no changes during business hours”, “back up before any change”). If you hire outside help, the guide to hiring a freelance Linux sysadmin covers access and handover from the client’s side, and a freelancer who leaves you with documentation is one you can safely replace, which is exactly what you want.

A starting checklist

  1. Make the inventory, with renewal dates.
  2. Write a site sheet for each project.
  3. Write five runbooks: restore, site down, certificate, access, deploy and rollback.
  4. Start a change log today.
  5. Pick one place and write the README.
  6. Put a quarterly review in the calendar.

When it is worth getting help

Writing documentation is the first thing teams skip and the thing they miss most. If you want someone to document your servers and sites, to build the inventory and runbooks as part of an audit, or to take over an undocumented setup and leave it clear, I do this as part of every project: technical documentation, SOPs and knowledge bases.

You can see my profile on Upwork, or read about monitoring and upkeep and the guide to auditing an inherited server.