Backing up and restoring an X-Road Central Server

A Central Server backup protects the configuration your X-Road ecosystem depends on, but the restore steps must be confirmed against the release you run. This page covers the options, the restore sequence, HA differences and what to verify.

On this page

Why you should back up an X-Road Central Server before any change

Before an upgrade, an operating system change or a hardware move, the operator of an X-Road Central Server needs a recovery path, because the Central Server holds the configuration that its members depend on. A tested backup and restore procedure is what makes those changes reversible. Without one, a failed step can leave member configuration in doubt while you reconstruct it. X-Road is open-source software published under the MIT license and developed by the Nordic Institute for Interoperability Solutions (NIIS). Its main components are the Central Server, the Security Server and the Configuration Proxy. Each one has its own backup behavior, so a plan that covers only one of them leaves a gap.

Start by confirming the release you run. The current release is 7.8.3, and the supported versions are 7.8.3, 7.7.4 and 7.6.5. A Central Server on any other version is not on that supported list, so resolve that before planning the change. Check the X-Road releases page for the current list. The exact backup contents, schedule and retention depend on the release in use, so confirm them against the documentation for your version before you write a runbook. Do not assume that a backup taken on one release restores cleanly on another. Verify that with NIIS documentation and a test restore in your own environment.

Before the change window, settle three decisions: who owns the restore call, where the backup copy is stored, and whether a restore has been rehearsed on a separate host running the same release. Keep the backup off the Central Server itself, so a disk or operating system failure cannot take out both copies. Record the release, operating system and database setup the backup came from, because a restore target that differs can turn a short recovery into an incident. Confirm how the backup is encrypted and who can read it in your environment, since the file describes configuration for every member you serve. A rehearsed restore is the evidence that counts when a change goes wrong.

Backup options for a Central Server and when each fits

This table compares the backup and restore options an operator can combine for a Central Server, with the situation each one suits and the trade-off to weigh. Read each row against the failure you need to survive, such as a bad change, a damaged disk or a lost host. Confirm the schedule, retention period and encryption method for your version in the current documentation before you rely on them.

OptionWhen it fitsTrade-off to weigh
Automatic scheduled backupBaseline protection for routine recovery of the Central Server configurationBackup files sit on the same host, so losing the host can also lose the backups
Manual backup before a changeBefore an upgrade, a global configuration change or a member or service changeCovers only the moment it is taken, and depends on an operator running it every time
Copy backup files off the serverWhen a failed or lost host must still leave a usable backupCopies need their own access control and retention, and the copy step must be tested
Encrypt backup filesWhen copies leave the server or sit on shared storageLost keys mean lost backups, so confirm the encryption method and key handling first
Restore onto the original hostThe host is intact and the goal is the fastest return to serviceCarries over any fault on the host, so confirm the cause before restoring
Restore onto a rebuilt hostThe host is lost, damaged or cannot be trustedSlower, because the matching version and host settings must be rebuilt first
Restore in an HA clusterThe Central Server runs as a clustered setup on a shared databaseRestore steps change for clustered setups, so confirm the cluster procedure before relying on it

What changes for restore on a single server or an HA cluster

On a single Central Server, the restore involves one server and one database. The work is sequential: rebuild the host on the release the backup came from, restore the configuration backup, and bring the database to the point that matches that backup before the server serves configuration again. Confirm the exact steps for your release in the vendor documentation.

  • Restore order: Rebuild the host, restore the configuration backup, then restore or reattach the Central Server database to the matching point. Treat these steps as one sequence, not three separate tasks.
  • Database coordination: The team that runs the database is often the one that performs the database restore, while the X-Road operator restores the configuration. Agree on one recovery point and record it in the change ticket.
  • Release match: Restore onto the same release line the backup came from, and plan any upgrade as a separate change.
  • Verification: Compare the members and global configuration visible in the admin interface with the inventory you kept before the failure, and check the diagnostics view for global configuration status.
  • Dependent servers: Confirm which Security Servers pick up the restored global configuration, since they depend on the Central Server for it.

Before you close the change, confirm that the restored server reports the configuration you recorded and that the database recovery point matches the configuration backup.

How a Central Server backup moves to off-server storage and back during restore

The diagram starts at the Central Server, where a scheduled backup and a manual backup both write to a local backup location. An operator then decides whether to copy the backup off the server into their own infrastructure. For a restore, that copy goes to a restore host on the same X-Road release, where a consistency check runs before a second operator decision approves the restore. The final step verifies member connections and the global configuration state. The database is a separate item in the diagram, so it needs its own backup plan.

Central Server backup path from creation to verified restore, with the separate database item.

How to back up and restore a Central Server in the right order

This sequence starts with an inventory of the X-Road release and backup location, then moves backups off the server, prepares a same-release restore host, and confirms the restored Central Server works with its members. The result is a runbook with a check at each step, so the team can repeat the restore under pressure without guessing. Each check should produce a record that an auditor or a second operator can review.

  1. Inventory release, components and backup location

    The Central Server operator records the X-Road release on each Central Server and the other components in use, such as Security Servers and Configuration Proxies, in one controlled document. Confirm each release against the supported list on the X-Road releases page, which currently lists 7.8.3, 7.7.4 and 7.6.5. Then list the backup directory on a live server, note the file names the automatic daily backups produce, and record the naming pattern. Done when every server has a release entry, a backup location and a named owner, and someone other than the author has checked those entries against the running system.

  2. Copy backups off the server and test them

    The operator copies the automatic backups to storage outside the Central Server, in a location with its own access controls and retention. Compare file sizes and checksums between the source and the copy, then read one copy on a separate host to confirm it can be opened and parsed. Keep the copy schedule documented so that a gap is visible. Done when every copied backup has a matching checksum on the source and the copy, and at least one copied file has been read successfully outside the server.

  3. Record who holds encryption passphrases

    The operator lists every person and system that holds the encryption keys or passphrases protecting the backups (confirm which encryption your installation applies), and where each one is stored. Two or more named custodians should be able to provide the material, and no single person should be the only holder. Test decryption on a copied backup outside production, using only the material the custodians provide, so the restore does not depend on someone's memory. Done when the custodian list is signed off by the security owner and the decryption test has succeeded with that material.

  4. Take a manual backup before changes

    Before any upgrade, configuration change or certificate work, the operator takes a manual backup on the Central Server using the procedure for your release, and records its file name, time and checksum in the change record. The backup is copied off the server using the same method as the automatic copies, and the copy is read once more. Keep the pre-change backup until the change is confirmed good, under the retention rules the team has agreed. Done when the manual backup exists on the server, the off-server copy matches it, and the change ticket references both.

  5. Prepare a restore host on the same release

    The operator builds a non-production host on the same X-Road release as the source Central Server, using the same operating system family and database platform so that the test exercises the backup itself. The host sits on an isolated network with no route to production members, and it must not be given production hostnames or certificates that could be mistaken for live ones. Install the matching packages, confirm the release with the package manager, and check that the database is reachable. Done when the release on the host matches the source, the isolation has been tested from the host, and no member traffic can reach it.

  6. Restore and run consistency checks

    The operator restores the chosen backup onto the restore host, using the restore method for the release, and keeps the console output with the change record. Then the operator runs the consistency checks the release provides and reviews each result. A clean restore message alone does not show that the configuration is consistent. If a check fails, stop, record the failure and the backup used, and do not promote the host. Done when the restore completes, every consistency check reports success, and the results are saved with the file name and checksum of the backup restored.

  7. Verify member connections and global configuration

    On the restored Central Server, the operator checks the global configuration status in the diagnostics view and confirms that it reports the expected state. Then the operator tests connections to a set of members agreed in advance, and compares the results with the pre-change record. Coordinate with those members before any test connection is made, and keep the restored server isolated from production traffic until the promotion decision is made. Done when global configuration status matches the expected state, the agreed connections succeed, and any difference from the pre-change record is explained in writing.

  8. Document and review the runbook

    The operator turns the notes from every step into a written runbook with the release, backup locations, custodian list, restore host build, commands used and check results, and the owner for each step. A second operator follows the document from the start on a fresh restore host, and records every point where the document is unclear or incomplete. Update the document after each restore or upgrade test, and store it where the custodians and the on-call team can reach it without the Central Server. Done when a second operator has completed the restore from the document alone and the reviewer has signed off the revised version.

What a command line restore changes and how to verify it afterward

A command line restore replaces the Central Server's current configuration with the state held in the chosen backup. Every change made after that backup was taken, such as members added, certificates approved or global configuration edits, is absent once the restore completes, so the first decision is which backup to use and which later changes must be recorded and reapplied by hand. The Central Server services must be stopped or idle before the restore begins, so that no write lands mid-restore and the database is not changed underneath a running process. Confirm the exact command, its flags and the backup location from the documentation for the release in use. The supported releases are 7.8.3, 7.7.4 and 7.6.5, and a command copied from an older guide or a forum post should be treated as unverified until it matches the documentation for your release.

Verify the restore in layers, and do not treat a clean command exit as success. First, confirm the configuration is present by comparing the members, subsystems, services and certificates the Central Server now holds against the list you recorded before the restore. Second, confirm the services start cleanly, with no errors in their startup logs and no component left in a failed or partly started state. Third, confirm the Central Server reports consistent state, meaning the global configuration it publishes matches what you expect and no entries are pending or conflicting. Finally, confirm member Security Servers can reach it by testing from at least one member that it can retrieve the global configuration and that the Central Server answers its connections. For the global configuration checks, use the diagnostics topic in this content group, which covers reading global configuration status and running connection tests.

Plan for a restore that does not go as expected. Keep a copy of the current backups and the current configuration in a separate location before you start, so the restore can itself be reversed. Rehearse the full sequence on a non-production Central Server running the same release, and time the stop, restore and verification steps so the production change window is agreed in advance. Record the backup identifier, the time the restore ran, the operator who ran it and the result of each verification step. Ask the Nordic Institute for Interoperability Solutions or check the release notes for whether member Security Servers need a configuration refresh or restart after the restore, and schedule that step before members are told the service is back.

How to protect backup files and the access that can restore them

A Central Server backup is only as safe as the files, keys and accounts around it. The six items below cover what the backup contains, who can read or restore it, where the secrets and copies live, and how every action is traced. Check each one before the first scheduled backup runs, and again after any change to administrators or storage.

Confirm what the backup contains

A Central Server configuration backup can hold sensitive settings and may include key material, so the first task is a written inventory of exactly what each backup archive includes. Check the official documentation for which files, keys and database content are covered, and whether any private keys are included. Record the answer before the first scheduled run, because the inventory decides who may read the archive, where it can be stored and what must be encrypted.

Separate restore rights from administration

Read access to a backup and the right to restore it can each change a running Central Server, so grant both to named roles only. Keep those roles separate from the accounts used for day-to-day administration, so routine work never carries restore rights. The Security Server user guide shows how X-Road splits admin duties into distinct roles, and the same separation is worth applying here once you confirm which roles the Central Server provides.

Security Server user guide

Keep passphrases away from backups

An encrypted backup is recoverable only while its passphrase or key is available, and a key stored next to the archive gives little protection if the archive is copied. Hold the encryption secret in a separate system with its own access list, such as a secrets manager or a sealed custodian record. Test a restore using only that separate copy, and record who holds each copy of the secret.

Keep off-server copies controlled

A backup stored only on the Central Server is lost along with that server, so copy each archive to storage your organization controls. Choose a location in your own data center, your own cloud account or an approved private storage service. Confirm that the copy is written on schedule and can be read, that it carries the same access limits and encryption as the source, and that its retention matches your policy. Confirm with the operator documentation which copy method is supported.

Apply the admin account baseline

The X-Road security hardening guidelines recommend locking an account for 15 minutes after 3 failed logins and using passwords of at least 16 characters. Apply these settings to every account that can start a backup or restore, including emergency accounts, and check them after any directory change. The guidelines also recommend key-only SSH, which limits who can reach the host where backup files sit. Verify each setting on the Central Server itself, since a baseline on one host says nothing about the others.

Hardening guidelines

Log every backup and restore

A backup archive records the Central Server configuration at one point in time, and the trail around it should show who ran each backup and restore. Record the operator account, the date and time, the archive identifier and the outcome of every run. Forward those entries to the audit or system log store your team already reviews. Confirm that the accounts performing backups cannot edit those entries, and test the trail by searching for a restore you ran in a test environment.

What teams ask before they hire help to back up an X-Road Central Server

How much effort does a Central Server backup and restore program take?

Effort depends mostly on scope and environment, and the duration should be confirmed against the written scope and your own systems. The main drivers are the number of environments, since production, staging and any disaster recovery copy each need their own configuration and checks. The HA design matters too: a clustered Central Server on a shared database adds steps to verify cluster state before and after a restore. Encryption and off-server storage add key handling, access control and transfer checks. The number of restore tests is often the largest lever, because each agreed scenario needs rehearsal, recorded results and sign-off. Ask the provider to list each environment, each restore scenario and each storage target as separate lines in the written scope, since those lines decide most of the effort.

Can our own team run a backup and restore program for X-Road?

Yes, if your team already operates the platform and has the skills the work requires, although a first build can benefit from an outside reviewer. The work needs Linux administration, including service management, file permissions, scheduled jobs, disk and encryption setup. It needs PostgreSQL operations, including backup tooling, restoring into a clean instance and confirming that the database matches the Central Server configuration after a restore. It also needs X-Road administration: knowing which configuration the Central Server holds, running the backup and restore procedures, and reading the logs afterward. Confirm which of these skills already exist in-house, name one owner for the full chain, and agree who can approve a production restore before the first rehearsal.

What do we need to provide for a backup and restore engagement?

You provide access, a staging environment, a maintenance window, a release inventory and a named approver. The items below set what the work depends on:

  • Access: accounts on the Central Server host, its database and the storage targets, granted through your own change process and limited to the systems in scope.
  • A staging environment: a copy that runs the same X-Road release, so restores can be rehearsed without touching live configuration.
  • A maintenance window: time for the restore test against the Central Server itself, with its length agreed in writing.
  • A release inventory: the X-Road version, operating system and database version for each server, so restore steps match what is installed.
  • A named approver: one person who signs off scope, test results and any production restore.
How is cost structured in a fixed-scope X-Road backup engagement?

In a fixed-scope engagement, the fee follows from a written scope that lists deliverables, environments, restore scenarios and timelines, agreed before work starts. DeployOpen does not publish a price list, so the quote comes from that scope. The cost has three parts. The engagement fee pays for design, building the backup and restore procedures, restore testing, runbooks and evidence. Your own cloud or data center costs cover staging hosts, storage and any off-server copies, and you pay those directly. Internal staff time covers access, reviews and approvals. Build and first rehearsal are one-time work, while storage, periodic restore tests and any support retainer recur. Ask for a quote that lists each deliverable and environment, the number of restore tests, your access assumptions, exclusions, how scope changes are priced and which costs remain yours.

Does an X-Road backup let us roll back a failed upgrade?

A backup can support a rollback only if it was taken immediately before the upgrade and the restore has been tested on a copy of the same environment. A configuration backup restores the Central Server's configuration, but it does not replace a plan for the software version, the database state or any data written after the backup was taken. Confirm with the upgrade procedure which steps are reversible. Before relying on the backup, test these in staging: restoring onto a server at the prior release, the database restore and its consistency with the configuration, connection and trust checks against other members, and the time the restore takes within your maintenance window. Record the results and the approver's sign-off. Check the rollback steps against the X-Road releases page for the release line you run.

Can DeployOpen certify or audit our X-Road backup and restore?

No, DeployOpen does not issue audit reports, attestations or certifications. DeployOpen prepares the systems, controls and evidence that an assessment will review, such as the backup configuration, restore test records, runbooks and approval trails. Independent auditors and certification bodies perform the assessment and decide what the evidence shows. Before work starts, ask your auditor which records they expect, for example scheduled backup logs, restore test results with dates and outcomes, access records for backup storage and how encryption keys are handled. Agree that evidence list in the written scope so the deliverables match what the assessment asks for.

Limits to confirm in your environment before you rely on a restore

A Central Server backup is only as useful as the conditions around it. The points below are settled by your release, your key custody and your cluster design, not by the supplied sources, so confirm each one with the vendor documentation, the NIIS community or a restore you have tested yourself.

Schedule and retention for your release

Confirm how often the Central Server backup runs and how long copies are kept for the release you operate. Check whether the schedule is fixed or configurable, where backup files are written, and whether retention is enforced by the software or by your own cleanup jobs. Your recovery point objective depends on the answer, so verify it by listing the backup location after a scheduled run and comparing the result with the documented behavior.

Encryption and HSM-held keys

Find out whether Central Server backups are encrypted by default, who holds the keys and how they are rotated. If your signing or authentication keys sit in a hardware security module reached through a PKCS#11 driver such as xroad-addon-hwtokens, a file copy of the server may not carry them. Ask the vendor how key material is exported or re-bound, and rehearse a restore on a host with the same HSM access.

Security Server installation guide

Database and message log coverage

Confirm whether a configuration backup alone can rebuild a host, or whether the database and message log must be captured separately. These are distinct data sets with their own backup method, so a configuration file by itself can leave you with a server that cannot resume exchange. Back up the database as its own target, and check that message log retention covers the evidence period your organization needs.

Restores across releases and major versions

Confirm whether a backup taken on one X-Road release can be restored onto another, including a different 7.x patch level or a move toward X-Road 8. The supported 7.x versions are listed on the releases page, but that list does not say whether a configuration backup restores across them. Restore onto a matching version in a lab before you schedule any upgrade window, and record the result.

X-Road releases

HA sequencing and cross-node effects

Confirm the order in which cluster nodes must be restored, and whether restoring one node changes shared state that the other nodes read. In a highly available Central Server design on a shared database, a restore applied to that database may affect every node at once, so a single-node restore can become a cluster-wide change. Get the sequence in writing from the vendor documentation, then rehearse it with the nodes isolated from production traffic.

How DeployOpen scopes, delivers and supports Central Server backup and restore

DeployOpen treats Central Server backup and restore as a planned operational procedure inside your own infrastructure, with the configuration backup, encryption, restore steps and HA behavior agreed before the work starts. X-Road is open-source software published under the MIT license, and the backup design, storage location and test restores stay in infrastructure you control.

How we scope

  • The written scope names the Central Server version, the operating system and the database the server uses.
  • Backup location, retention, encryption keys and restore authority are agreed in writing before changes begin.
  • Engagements are fixed-scope, and ongoing support is available as a retainer. A quote follows from the written scope.

How we build

  • Configure the automatic daily backup schedule and confirm retention against the installed release documentation.
  • Set up backup encryption with keys held under your key management process, and document each key's location.
  • Run a test restore into a separate environment, then check the Central Server and connected Security Servers.

How we hand over

  • A runbook with backup commands, restore steps, rollback points and the contact order for incidents.
  • Recorded restore test results, including the release version, timings you observed and any gaps found.
  • Operator training on the command line restore procedure, run with your team on your own environment.

How we support

  • Retainers can cover upgrade planning, periodic test restores and review of backup logs after each platform change.
  • Each Central Server version change should be followed by a fresh restore test.
  • Ask for the support scope, response arrangements and escalation path in writing as part of the quote.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.