Maintenance

MeshCentral Backup and Update – A Maintenance Routine That Works

A practical routine for backups, updates and health checks that keeps the server trustworthy for years.

MeshCentral My Server page showing server statistics, backup and restore options

MeshCentral servers need the same steady maintenance as any other critical system: reliable backups, timely updates and a quick look at their health every so often. Because a single server can control every computer enrolled in it, the consequences of neglect are unusually serious. A lost data folder forces every agent to be reinstalled, while an outdated server may carry a vulnerability that attackers are already exploiting. This article sets out a practical maintenance routine covering what to back up, how to automate backups, how to restore them, how to update safely on each installation method and how to monitor the server from the My Server page.

What Actually Needs Protecting

A MeshCentral installation keeps its state in a small number of places.

  • The data folder contains config.json, the web certificate, the keys that agents use to recognise the server and, when the built-in database is in use, the database itself. It is irreplaceable.
  • The files folder stores files that users have uploaded to the server.
  • An external database, if you use MongoDB, PostgreSQL or MariaDB/MySQL, holds accounts, devices and events.
  • Session recordings, if enabled, are written to the location set in the configuration.

The Node.js code in node_modules does not need backing up, because it can always be reinstalled. The certificates and keys, by contrast, cannot be recreated; a newly generated set would not be trusted by existing agents.

Built-in Server Backups

MeshCentral can create backup archives itself. From the My Server page, an administrator can download a server backup immediately and restore a server from a backup file. For routine protection, the automatic backup feature is more dependable. It is configured in the settings section of config.json:

"autoBackup": {
  "backupIntervalHours": 24,
  "keepLastDaysBackup": 14,
  "zipPassword": "a-long-unique-backup-passphrase",
  "backupPath": "/opt/meshcentral/meshcentral-backups"
}

This example creates one backup a day, keeps two weeks of archives, protects each archive with a password and writes them to the backups folder. When an external database is used, the server relies on that database's own dump tool to include the database in the backup, so make sure the tool is installed and reachable.

Protecting archives with a password is important, because a backup contains everything an attacker would need to impersonate your server.

Getting Backups Off the Server

A backup stored only on the server it protects is of limited value. If the disk fails, the virtual machine is deleted or the server is compromised, the backups go with it. Copy archives to separate storage on a schedule using whatever your organisation already trusts, such as a network share, an object storage bucket or a dedicated backup system.

A sensible pattern is often summarised as three copies of the data, on two different types of storage, with one copy kept off site. Encrypted MeshCentral archives fit easily into such a scheme.

A backup has not truly been made until it has been copied elsewhere and successfully restored at least once.

Testing a Restore

Testing a restore is the step most often skipped and the one that matters most. At least a few times a year, build a temporary server, restore the latest backup to it and confirm that:

  • the dashboard opens and accounts can sign in;
  • device groups and devices appear as expected;
  • the server presents the same certificate, so that agents would trust it.

Keep the test server isolated from the internet so that real agents do not connect to it unexpectedly. Document the steps as you go, because a written restore procedure is invaluable during a genuine emergency.

Updating an npm Installation

For a server installed through npm, the update process is short.

  • Read the release notes for every version between the one you run and the one you are installing.
  • Check whether the new release changes the required Node.js version, and upgrade Node.js first if necessary.
  • Take a fresh backup.
  • Stop the service.
  • Install the newer package in the same folder, as the service account and without sudo.
  • Start the service and watch its startup messages.
sudo systemctl stop meshcentral
sudo -u meshcentral bash -c "cd /opt/meshcentral && npm install meshcentral"
sudo systemctl start meshcentral

To install a particular version rather than the latest, specify it after the package name, which is useful when rolling back.

Using the Built-in Updater

The My Server page can check the server version and, on npm installations, update the server from the web interface. It is a convenient option for small servers, as long as backups are current and someone is available to check the result. Never use it inside a Docker container, where updates must be made by pulling a newer image.

Updating a Docker Deployment

In containers, the image is the unit of update.

docker compose pull
docker compose up -d

Because the data, files and backups folders live on persistent volumes, recreating the container preserves everything. Pinning image versions in the compose file gives precise control and makes rolling back as simple as reverting the tag.

Agents Update Themselves

When the server is updated and includes a newer agent build, connected agents are updated automatically. There is normally no need to redistribute installers after a server update. Devices that were offline at the time will update when they next connect.

Prioritising Security Releases

Not every update is equally urgent. Feature releases can wait for a convenient maintenance window; security releases should not. MeshCentral has published several security fixes over the years, and in October 2026 the project released version 1.3.1 with an explicit warning that an active exploit was being used to take control of MeshCentral servers and their clients.

A practical policy is to apply security releases within a day or two of publication, after a quick backup, and to restrict access to the server temporarily if an update cannot be applied quickly.

Monitoring the Server's Health

The My Server page provides a live view of the server, including processor load, memory use, connected agents, active user sessions, relay sessions and connected Intel AMT devices. It also gives access to the server's error log and configuration. Glancing at these figures during routine checks reveals trends long before they become problems.

For continuous monitoring, add external checks:

  • an uptime monitor that tests the HTTPS address and alerts on failure;
  • disk space alerts, since recordings and backups can grow quickly;
  • certificate expiry alerts, even when renewal is automatic;
  • notifications for new MeshCentral releases.

A Simple Maintenance Calendar

Weekly

  • Confirm that the latest automatic backup exists and has been copied off the server.
  • Check the server for available operating system updates.
  • Review new MeshCentral release notes.

Monthly

  • Review user accounts and remove those no longer needed.
  • Remove devices that have been retired or offline for a long time.
  • Check disk usage and the size of recordings and logs.

Quarterly

  • Test a full restore on an isolated machine.
  • Review device group permissions and consent settings.
  • Confirm that two-factor authentication is enabled for every administrator.

Common Maintenance Mistakes

  • Backing up only the database and forgetting the certificates in the data folder.
  • Keeping backups solely on the server they protect.
  • Updating MeshCentral without first checking the Node.js requirement.
  • Using the built-in updater inside a container.
  • Postponing security releases until the next scheduled window.
  • Never testing a restore until it is needed for real.

Planning for a Complete Server Loss

Backups are only one part of recovering from a disaster. It is worth thinking through, in advance, what would happen if the server disappeared completely, perhaps through hardware failure, a hosting provider problem or a security incident.

Write down where the latest backup is stored, who can reach it and how to obtain the backup password. Record the hostname, the DNS provider and how the domain's records are changed. Note the installation method, the MeshCentral and Node.js versions in use and the location of any reverse proxy configuration. With this information, a colleague could rebuild the server without guesswork.

In a security incident, recovery has an extra dimension. If an attacker may have obtained the server's keys or administrator accounts, simply restoring the same data may restore their access too. In that situation, reset every account's credentials, review device groups and events for changes you did not make and consider whether agents should be reinstalled against a server with a fresh identity. Deciding these questions calmly in advance is far easier than deciding them during an emergency.

Keeping Node.js Itself Current

MeshCentral runs on Node.js, and the runtime receives its own security fixes. Keep Node.js on a supported long-term support line and apply its updates as part of the server's normal patching. On Linux, remember that replacing the Node.js binary can remove capabilities granted with setcap, so a server that relied on that method may fail to bind to ports 80 and 443 after an update. A systemd unit that grants the capability itself avoids this surprise entirely.

Documenting Every Change

Keep a simple change log for the server: the date, the version installed, configuration edits and the person responsible. When a problem appears days after an update, this record shortens the investigation dramatically, and it gives anyone who inherits the server a clear picture of its history.

Frequently Asked Questions

The meshcentral-data folder. It contains the configuration, certificates and keys that agents rely on, and, with the built-in database, the database itself.

Yes. The autoBackup setting in config.json schedules regular archives, which can be password-protected and kept for a set number of days.

No. Agents update themselves automatically when the server provides a newer agent build.

Restore the data folder from the backup taken beforehand and reinstall the previous version, or start the previous image tag in Docker.

As soon as practical, ideally within a day or two, after taking a backup.

On npm installations, the My Server page can update the server. In Docker, update by pulling a newer image instead.

Conclusion

Keeping a MeshCentral server healthy comes down to a handful of reliable habits. Protect the data folder above all else, automate encrypted backups and copy them off the server, and test restores before an emergency forces you to. Read release notes, upgrade Node.js when required and treat security releases as urgent. Use the My Server page and simple external monitoring to spot trouble early. A server maintained this way remains trustworthy for years, which is exactly what a tool with this much access deserves.