Ubuntu server maintenance checklist: weekly to quarterly

Core45 ·

A production Ubuntu server stays safe when updates install automatically, monitoring warns early, backups are tested and someone reviews access and support status on a fixed rhythm. Here is the checklist, grouped by week, month and quarter.

A server rarely fails on the day it is neglected. It fails months later, when a disk reaches 100%, a certificate expires over a weekend, or a backup turns out to have been empty since spring. By then nobody remembers which change started it.

Most companies with a website or application on a Linux server do not need a clever setup. They need a short list of jobs done on a fixed rhythm by a named person. This checklist is organised that way, and it is meant to be saved and used. It is also the routine behind our server administration work.

What does an Ubuntu server need to stay safe?

An Ubuntu server stays safe when security updates install automatically, monitoring warns you before a disk or service fails, and backups are checked and test-restored on a schedule. Once a quarter someone also reviews access, firewall rules and the support status of the Ubuntu release. The tools are free. The missing piece is almost always an owner.

Why servers fail months after they are neglected

Most server problems grow slowly. Logs fill a disk a few megabytes a day. Packages fall behind on patches. A former contractor still has an SSH key. A backup job starts failing after a password change and nobody reads the error email.

None of this hurts on the day it happens, which is why it gets postponed. The cost arrives later and all at once: an outage during a busy week, a breach through a known flaw, or a restore that does not work. Maintenance by rhythm turns these slow failures into small, boring tasks.

If your application is built on a framework such as Laravel, the server is only one half of its health, and we cover the application side in why Laravel is a sound base for business applications. This article is about the machine underneath.

The one-time hardening baseline

Before any routine makes sense, the server needs a sound starting point. Do these once, and check them again every quarter.

  1. SSH keys instead of passwords. Disable password login for SSH, so guessing a password is no longer an attack.
  2. No direct root login. People use named accounts and sudo, so every administrative action can be traced to someone.
  3. Firewall that denies incoming traffic by default. Open only what the server must serve, usually SSH, HTTP and HTTPS.
  4. Brute-force protection. Run fail2ban or an equivalent that bans addresses after repeated failed logins.
  5. Least privilege. Each service runs as its own unprivileged user, and each person gets only the access the job needs.
  6. Backups that leave the server. A backup on the same disk is not a backup.

On backups, the 3-2-1 rule is a good default: three copies of the data, on two different kinds of storage, with one copy off site. Whether the server sits in your own rack or in a data centre, the rule is the same. If you are still deciding where the server should live, see our comparison of Proxmox on your own servers or the public cloud.

Four external backup hard drives standing in a row on a metal shelf in a server room
Backups only count when a copy lives on separate hardware and has been restored at least once.

What should run automatically, all the time

Three things should never depend on someone remembering them.

  1. Security updates. The unattended-upgrades package is installed and enabled by default on Ubuntu Server; make sure nobody has switched it off. It checks for security updates daily and installs them without any human action.
  2. Monitoring. Watch disk space, memory, load and the health of the services that matter: the web server, the database, the queue worker. An alert must reach a person who will read it, not an unmonitored mailbox.
  3. Certificate renewal. If you use Let’s Encrypt with Certbot, renewal is automatic, but only until it breaks. Monitor the expiry date of every certificate, so you hear about a failed renewal weeks early.

Automatic does not mean ignored. Each of these three needs a quick check from time to time, and the weekly list below covers it.

Weekly Ubuntu server checklist

Fifteen to thirty minutes, the same day each week. The goal is to notice problems while they are still small.

  1. Read the alerts from the past week and confirm each one was understood or fixed, not just silenced.
  2. Look at the logs for failed logins and repeated errors. A sudden spike of failed SSH logins, or one service restarting many times, deserves a closer look.
  3. Confirm that last night’s backups ran and finished, and that the backup size is plausible. A backup that suddenly shrinks to almost nothing is a warning.
  4. Check that automatic security updates are still being applied.
  5. Check free disk space with df -h and note any partition above the level you agreed as normal.

Monthly Ubuntu server checklist

One to two hours. This is where the slow problems get caught.

  1. Apply the remaining package updates, the ones automatic security updates do not cover.
  2. Reboot when a new kernel requires it. Ubuntu creates the file /var/run/reboot-required when a restart is pending, and many panels and login messages report it. Schedule the reboot in a quiet hour and check that every service comes back.
  3. Review user accounts and SSH keys. Remove people who have left and keys nobody can account for.
  4. Look at disk growth over the month. Knowing a disk fills about as fast as last month gives you a date to act on, long before it is full.
  5. Restore one backup for real, for example a single database or a handful of files, into a scratch location.
sudo apt update && sudo apt upgrade

Quarterly Ubuntu server checklist

Half a day, plus time for any fixes. These are the checks that catch what the weekly and monthly rounds cannot.

  1. Full restore test. Rebuild the application from backups on a clean machine or virtual machine, and confirm that the site actually works. Write down how long it took and which steps were missing.
  2. Firewall and open ports. Run sudo ufw status verbose and compare it with what should be open. Every rule needs a reason; remove the ones that do not have one. sudo ss -tlnp lists which TCP ports are really listening on the machine.
  3. Access review. List who can log in, who has sudo, which keys are deployed, and which third parties (agencies, hosting contacts, former staff) still have access.
  4. Support status of the Ubuntu release. Ubuntu LTS releases come every two years and, according to Canonical, receive five years of standard security maintenance. Check on Canonical’s release cycle page how long yours is covered.
  5. Upgrade plan. Plan the move to the next LTS well before support ends, and rehearse it on a copy first. Upgrading under pressure, after support has ended, is how outages are made.

How the checklist affects search and uptime

A neglected server shows up in your search results eventually. Slow responses, frequent downtime and expired certificates hurt the experience of visitors and the way search engines crawl your site. Our technical SEO checklist covers the site side; this one covers the machine that has to stay up for it to matter.

When to hand server maintenance to someone else

Do it yourself if you have someone with Linux experience who has the time and whose job description includes the server. Keep this list on the wall and work through it.

Hand it over when nobody owns it. That is the honest test: if the answer to “who gets the alert at night?” is a shrug, or the person who set it up has left, then the checklist will not get done, however good it is. The same applies when the server holds customer data and you cannot afford a long outage, or when the Ubuntu release is close to the end of support and nobody has planned the upgrade.

What to do next

Start with an inventory this week. Write down what runs on the server, who can log in, where backups go and when they were last restored. Even a half-filled page shows you which of the lists above you are missing.

If you would rather have it done for you, our server administration service covers Ubuntu Server and Proxmox, including hardening, backups, monitoring and updates. If the application on the server is also unmaintained, we can look at the web application as well. Contact us and describe your setup.

Common questions

How often should I update an Ubuntu server?

Security updates should install automatically through the unattended-upgrades package. Install the remaining updates once a month and reboot when a new kernel requires it. Check weekly that the automatic updates are still running, because a silent failure here leaves known holes open.

How do I know if my server backups actually work?

You only know when you restore one. Check weekly that the backup job finished and that its size is plausible. Restore a single database or a few files each month, and rebuild the whole application from backups once a quarter. Keep a copy off the server.

How long is an Ubuntu LTS release supported?

According to Canonical, LTS releases come every two years and receive five years of standard security maintenance. Check the release cycle page for your exact version, and plan the upgrade to the next LTS well before support ends, after a rehearsal on a copy.

Can a small business maintain its own Linux server?

Yes, if one person with Linux experience owns the server and has the time. If nobody owns it, or that person has left, the checklist will not get done. Then it makes sense to hand the weekly, monthly and quarterly rounds to an administrator, for example through a server administration service.

Got a project that needs to move?

Tell us what you want to build or improve. We will reply with specifics: what we suggest, in what order, and what we will need from you.