How to move X-Road message log archives to long-term storage
Signed message log archive files build up on each Security Server and must be moved off it for retention and evidence use. This page covers transfer with the HTTP transporter script or other tooling, archive encryption and grouping, and retention on the archiving side. Teams usually need this work for three reasons: evidence must be kept longer than a busy server should hold it, an audit or dispute requires archived messages to be produced, or archive files are filling the disk that the Security Server needs for its own operation. For the logging and archive background, read the message log and evidence group first. Decide early who owns the transfer, which system receives the files, and how long each copy must be kept, because those answers shape every later step.
Start with the exact transfer procedure, and confirm it in the documentation for the X-Road release you run. The current release is 7.8.3, and 7.7.4 and 7.6.5 are also supported, so check the steps against your own version before changing anything on a production host. Confirm the transporter script's options, how it authenticates to the receiving system, and whether it removes source files after a successful copy, so you know whether local disk space is actually released. The X-Road releases page lists the supported versions. Test the procedure on a non-production Security Server first, using a copy of a realistic archive set, and record the commands and settings you used so the transfer can be repeated during an audit.
Settle encryption and grouping before the first transfer, because changing them later means managing archives produced under two schemes. The key handling for archives is covered on the page about encrypting the message log and archives, so here confirm only that the receiving store can hold encrypted files and that the keys needed to read them are covered by backups without sitting beside the archives. For grouping, decide whether archives are kept per Security Server, per member or per time period, and make the receiving paths and file naming follow that choice. On the archiving side, write retention rules that state how long each group is kept, who may read it, and how deletion is logged. Then restore one group from the receiving store and verify its signatures before you rely on that store as evidence.
Message log archive transfer choices: method, grouping and encryption
This table compares the main choices for moving X-Road message log archives off Security Servers: transfer method, which side starts the transfer, encryption, file grouping and where retention is enforced. Read each row for the conditions that favor an option, then confirm the exact behavior in the Security Server guides for the release you run. The main takeaway is that the transfer design and the retention design should be decided together, because a copy that is moved but never verified or kept is weak evidence.
| Decision | When it fits | What to confirm for your release |
|---|---|---|
| Transfer method: HTTP transporter script | Fits when the standard script can reach your archive store and your team wants the path the guides describe. | Confirm supported options, credentials and failure behavior in the Security Server user guide for your release. |
| Transfer method: custom tooling | Fits when the archive target needs a protocol, authentication or existing backup tooling the script may not cover. | Confirm how your tool detects a complete, unchanged archive file and how it records checksums before copying. |
| Initiator: Security Server pushes | Fits when the Security Server can make outbound connections to storage and the storage side should accept no inbound sessions. | Confirm which host runs the transfer and which firewall rules it needs, since the installation guide's port list covers exchange and admin traffic. |
| Initiator: storage pulls from Security Server | Fits when your storage zone must start connections itself, for example under strict egress rules on the Security Server network. | Confirm the account and access rights the pull uses, and how they are scoped and stored under your hardening baseline. |
| Archive encryption: on | Fits when archives leave the Security Server's controlled boundary or sit on shared media, and your assessors expect encryption at rest. | Confirm the setting in the user guide and plan key backups so archives stay readable after a restore, without storing keys with the archives. |
| Archive encryption: off | Fits when storage already provides encryption and access control your assessors accept, and the archive content has been reviewed. | Confirm what the archives contain, including message content if full logging is on for the subsystem, before choosing this. |
| Grouping: transfer files as produced | Fits when you want a one-to-one match between archive files on the Security Server and copies in storage. | Confirm the archive file naming and grouping the release produces, so later lookups by time still work. |
| Grouping: regroup before transfer | Fits when reviewers need files organized by member, subsystem or service, and the team can prove the regrouping left contents unchanged. | Confirm that regrouping copies files without altering them and that each copy keeps its original name and checksum record. |
| Retention and deletion: where enforced | Fits when the archive store applies its own retention and legal hold, and the Security Server copy is removed only after a verified transfer. | Confirm what the Security Server deletes locally and when, and that the storage system holds its own retention rules. |
Archive files cross one trust boundary before retention begins
The flow starts on the Security Server, where X-Road produces signed message log archive files. A transfer step, either the HTTP transporter script or custom tooling, moves those files across the boundary into the archive zone, carrying the transfer credentials that authorize the copy. Inside the archive zone, an encryption and grouping step protects the files with the archive encryption key and organizes them before they reach archive storage. Retention and disposal run last on the archiving side. Check that transfer credentials can only write to the archive path, that the encryption key is backed up separately from the archives, and that each hand-off can be verified.
Archive files move from the Security Server network into the archive zone.
When the HTTP transporter script fits message log archives, and when custom tooling does
The HTTP transporter script moves signed archive files off a Security Server over HTTP to an archive host. It fits when the project's own tooling can cover the transfer step, so your team does not write and maintain transfer code. Confirm the following in the release documentation before you build on it:
- Scheduler and account: Confirm what runs the script (cron, a systemd timer or another scheduler), on which host, and under which account.
- Network path: Confirm the protocol, direction and port. Open only that path, and keep the admin UI on TCP 4000 unreachable from the archive host.
- Disk and permissions: The documented 3 GB free disk minimum covers installation only, so size the archive volume separately and confirm the account can read the archive directory.
- Archive host: Confirm how the host authenticates the transfer and whether it verifies files on arrival.
- Test before scheduling: Run it once by hand against a non-production archive, compare checksums on both sides, and open one transferred file to confirm it is intact.
Confirm the script is supported on the Ubuntu 22.04 or 24.04 LTS or RHEL 8 or 9 Security Server you run, using the Security Server installation guide.
A custom scheduled job, such as a cron entry running your own copy script, fits when your team already runs a scheduler and needs archive transfer to follow its storage, credential and monitoring rules. It also fits when the destination needs a method the transporter script does not cover, which you must confirm first. Your team owns the whole transfer, so these parts must be built and tested:
- Integrity checks: Compare a checksum for every file on source and destination, and keep the results so an auditor can see each file was verified.
- Retries: Retry failed transfers without overwriting complete files with partial copies, and alert when retries run out.
- Gap detection: Track which archive periods have arrived, so a missing period is found by the job rather than noticed later by chance.
- Alerting: Route failures and missing files to a named owner with an on-call path.
- Credentials: Give the job its own account, with read access to the archive directory and write access only at the destination.
Before you choose this path, confirm in the release documentation which archive file names and directory layout the Security Server produces, because gap detection depends on them.
An existing backup agent fits when your organization already backs up Security Server hosts under a managed policy, with retention, encryption and restore testing run by the backup team. The agent copies files on its own schedule, so the archive team must check what it captures and when. These items stay with your team even when the agent is in place:
- Coverage: Confirm the archive directory is included on every Security Server and that no exclusion rule removes it.
- Timing: Confirm backups run after archive files are complete, because a copy taken during a write can capture a partial file.
- Verification: Agents usually confirm that a copy finished, not that the archive is intact, so compare checksums and verify signatures separately.
- Retention and restore: Match the agent's retention to your archive retention, and restore one archive file to a clean host to prove the copy works.
- Encryption keys: Confirm where archive encryption keys are held and whether the backup copy can reach them, without exposing keys in the backup catalog.
Check in the release documentation for your version whether archive files are complete once written, and ask the backup team how the agent handles files that change during a copy.
Setting up X-Road message log archive transfer, step by step
This sequence moves signed message log archives from Security Servers to storage you control, in an order that keeps each copy intact and verifiable. Each step closes with a check you can record, so security, operations and compliance owners can sign off before the job runs unattended. The early steps fix the decisions and access model that later steps depend on.
Confirm the release and archive settings
The Security Server administrator confirms the installed release against the supported versions 7.8.3, 7.7.4 and 7.6.5 on the X-Road releases page, and notes that 7.8.0 is the last new-feature release of the X-Road 7 line. Then the administrator reads the archive settings in the Security Server user guide, including where signed archive files are written and how archiving runs on this release. Done means a written record of the version, the archive output location and the settings, reviewed by the platform owner, with the output directory confirmed to exist on the Security Server.
Decide encryption and grouping before archiving
The archiving owner, security lead and compliance lead agree on whether archive files are encrypted, how archive keys are held and recovered, and how archives are grouped for transfer, before the first archive is produced. These choices shape file layout, key custody and what the archiving side must be able to read, so changing them after the first archive adds rework. Confirm in the X-Road documentation which archive settings can be changed later. Done means a signed decision record that names the key holder, the grouping rule and the restore test owner, filed with the Security Server configuration.
Create a key-only transfer account
The system administrator creates a local account used only to copy archives, with no shared login and no interactive admin rights. Password logins are disabled for SSH, so the account authenticates with a key only, as the X-Road security hardening guidelines recommend. Limit the account's read access to the archive directory. Done means a test login succeeds with the key, a password attempt is refused, and the account cannot read anything outside the archive directory.
Open only the transfer network path
The network administrator allows one flow, from the Security Server to the archive storage host, on the port the chosen transfer tooling uses, and blocks everything else. Check that path against the port list in the X-Road Security Server installation guide: message exchange (5500) and OCSP (5577) are listed for external networks, while the admin UI (4000) and information system access (8080 or 8443) are listed for internal networks, and none of them should be reachable from the archive network. Done means a scan from the archive network shows only the agreed transfer port open.
Run and verify one manual transfer
The operator runs one transfer by hand with the HTTP transporter script or the chosen tooling, using a single archive file that has already been produced. Compare checksums of the source and the copy, confirm the file size and name match, and run the signed document verification your evidence process uses against the copied file. Done means the checksums match, the copy verifies with the same result as the original, and the transfer log shows no errors. Keep the log with the change record for the next review.
Schedule the job with failure alerts
The operator schedules the transfer under the dedicated account, runs it unattended at the interval the operations plan sets, and routes failure notifications to an on-call channel that someone watches. Force one failure on purpose, for example with a wrong key, and confirm the alert arrives and names the job. Done means the scheduled job runs successfully once after the test, and the forced failure reached the on-call recipient, with both results recorded in the runbook.
Document retention and disposal for archives
The compliance owner records how long archives are kept on the archiving side, who approves deletion, how deletion is carried out, and how archive keys stay recoverable without sitting next to the archives. Take retention periods from your legal and regulatory obligations and confirm them with counsel and the compliance lead. Done means an approved retention schedule, a disposal procedure with a named approver, and a logged test deletion on a non-production copy.
Security risks when message log archives leave the Security Server
Once a signed archive file is copied off the Security Server, its safety depends on the transfer account, the storage location and the admin accounts around it. The cards below cover the risks at that handoff and the controls and checks to confirm before the first archive moves.
Transfer credentials and key handling
The credential that lets the transfer job write archives to storage can move every archive it touches, so it is a high-value target. Use a dedicated credential for the transfer job, keep its private key or secret readable only by that job, and restrict it to the destination path. If the transfer runs over SSH, the hardening guide recommends key-only SSH. Rotate the credential when staff change roles and after any suspected exposure. Confirm which credential type your transporter setup uses and where its secrets are stored.
Archive exposure in transit and at rest
Archive files contain signed message records, so an unprotected copy on the storage side is as sensitive as the original. Confirm that the transfer channel encrypts traffic in transit and that the destination limits read and list access to the people who handle archives. Backups of the storage location should carry the same controls. Also confirm whether archive encryption is enabled before files leave the Security Server, since that setting determines what an intercepted or stolen copy reveals.
Role separation on the Security Server
The Security Server defines five admin roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Archive transfer should need access to exported files only, so map the transfer job to the least privileged account that can do the work. Keep that account out of roles that change security settings, services or onboarding. Confirm in the user guide which role your transfer procedure requires, and keep the transfer account separate from the people who approve changes.
Security Server user guideLockout and password rules for admin accounts
The hardening guide recommends locking an account for 15 minutes after 3 failed logins and using passwords of at least 16 characters. Apply the same rules to the transfer account if it authenticates with a password, and to every admin account that can start or change transfers. Where admin login goes through PAM with LDAP via SSSD, confirm that the lockout is enforced at the directory or PAM layer, since a rule set only on the Security Server may not cover LDAP-backed users. Also confirm how a lockout would affect scheduled transfers.
Hardening guidelinesIntegrity of copied archives
A copied archive is only useful as evidence if it still verifies against the original. Record a checksum of each archive on the Security Server before transfer, recompute it on the storage side, and compare the two before the source copy is pruned. Confirm that the copy keeps the signatures and timestamps inside the archive unchanged, and that any repackaging, compression or grouping step is reflected in your verification procedure. Test a restore of a sample archive from storage on a non-production host.
How retention on the archiving side is set and shown to auditors
Retention periods are not a platform setting. Your legal, contractual and evidence requirements set them, so the compliance lead should own the written retention policy for archived message log files, with legal counsel and the business owner of each exchanging service approving it. Before the first transfer, ask the compliance lead to record how long each archive copy must be kept, when it may be deleted, and who approves that deletion, with separate rules where requirements differ by member or service. Confirm these periods against the contracts that govern the exchange and the evidence your sector expects, since the platform does not decide them for you.
Deletion has two sides, and they must not run on independent schedules. The Security Server keeps archive files until an operator or a cleanup job removes them, and the archive storage keeps the transferred copies. Set the rule that a file leaves the Security Server only after its transferred copy has passed a checksum comparison and its retention period has been recorded on the archive side. Make the archive storage the system of record for retention, and have operations confirm before each Security Server cleanup that every file being removed has a verified copy that can still be read. Record each deletion on both sides with the approver's name and the date, so that a missing file can be traced to a documented decision.
To show an unbroken chain to auditors, build one evidence record per archive batch that links four things: the transfer log showing when the file left the Security Server and which account moved it, the checksum calculated before transfer and recalculated after arrival in storage, the storage access records showing who read, wrote or deleted the object and when, and the retention decision that covers it. Keep the checksum records apart from the archive files and under the same access controls as the archive itself, so that a single compromised account cannot alter both. Recheck a sample of archived files on a schedule and log the results, because an auditor will ask for proof that the stored copy is still the file that was originally signed. Ask your storage provider how long it keeps its access logs, since that period may be shorter than your retention requirement.
Limits to confirm before you design the message log archive transfer
Five constraints decide which software versions, platforms and transfer methods the archive design can rely on. Some are fixed by X-Road's release and platform support, and others are open questions you must answer in your own environment before the design is approved.
Supported 7.x releases
7.8.3 is the current release, and 7.7.4 and 7.6.5 are the other supported 7.x versions. Archive transfer design should start from the release each Security Server actually runs, not from the newest one. Inventory every Security Server that produces archives, record its exact version, and test the transfer against the lowest version you still operate. Plan any upgrade before the transfer goes live so the job does not need rework partway through the project.
X-Road releases7.8.0 closes new features
X-Road 7.8.0, released at the beginning of February 2026, is the last new-feature release of the 7.x line. NIIS intends to keep maintaining X-Road 7 with bug fixes and security patches beyond 2026, but the maintenance period is not yet decided. A multi-year archive program should therefore plan for an eventual upgrade. Ask NIIS for its current maintenance commitment in writing before you tie retention periods to a specific release.
NIIS 7.8.0 announcementX-Road 8 is beta only
X-Road 8 Spaceship is available for testing as 8.0.0 Beta 2, with the production release scheduled for December 2026. Do not plan production archive transfer on 8.0.0 Beta 2. Use it, if at all, in a lab to evaluate how its data space features would change your archive workflow. Production cutover planning should wait for a stable release and its documented upgrade path, so that the transfer design is not rebuilt on a beta.
X-Road releasesSupported operating systems
The Security Server is supported on Ubuntu Server 22.04 and 24.04 LTS on x86-64, and on Red Hat Enterprise Linux 8 and 9. Whatever runs the transfer, whether on the Security Server or on a staging host, must sit on one of these platforms as well, and its own dependencies must install cleanly there. Confirm the operating system of every Security Server and transfer host, and check that the transfer tooling is supported on the same versions before you choose a design.
Security Server installation guideThroughput, volume and retries
Ask for transfer throughput, archive volume limits and retry behavior in writing before you size the transfer window, the staging disk or the alerts. Measure these yourself before sizing anything. Run a timed transfer of a representative archive set in your environment, and note what happens when the storage endpoint drops mid-file. Confirm whether a failed file is resumed or sent again in full, because that choice changes both the transfer window and the storage cost of retries.
What teams ask before moving archives to long-term storage
What drives the cost of moving X-Road archives to long-term storage?
The cost depends mainly on how many Security Servers produce archives, how much archive volume they generate, and how much design work encryption, key handling and storage layout require. Each Security Server needs its archive transfer configured and tested, so a larger fleet costs more to bring into scope than a single server. Archive volume affects storage sizing, transfer windows and how long verification takes. Encryption and key handling add design and testing work, because keys must stay recoverable without being exposed. Storage and retention design, plus the testing and evidence needed to show the transfer worked, add further effort. Ask any quote to separate one-time work from recurring work, and to state who pays for the target storage platform.
How long does an archive transfer project take?
Duration depends on the scope and the environment, so no single timeline fits every organization. The main variables are how many Security Servers are in scope, whether archives are already encrypted, how the target storage is provisioned, and how many approval steps your change process requires. Environments with existing automation and a named storage owner usually move faster than those where storage, keys and retention are still undecided. Testing the transfer and retention settings in a non-production system takes its own time. DeployOpen's engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope.
What does the client need to provide for this work?
You need to provide access to the Security Servers in scope, a named owner for the target storage, your compliance requirements, and a maintenance window if the work requires one. In practice, that means:
- Administrative access to each Security Server in scope, with the change approvals that access requires.
- A named storage owner who can confirm the access model, capacity and lifecycle settings of the target.
- Written compliance and retention requirements from your legal, compliance or records teams.
- A maintenance window, if archive handling or a service restart needs one, confirmed with your operations team.
Missing any of these usually moves the start date, so confirm them before the scope is signed.
Can our in-house team move X-Road archives without a partner?
Yes, an in-house team can do it if it runs Linux and PostgreSQL confidently and the documentation confirms the procedure for your version. The Security Server is supported on Ubuntu Server 22.04 and 24.04 LTS and on Red Hat Enterprise Linux 8 and 9, and it requires PostgreSQL, so those skills apply directly. Your team should check the archive transfer procedure against the documentation for the X-Road release you run. Confirm that it covers encryption keys, backup of those keys and verification of transferred files. If any step is undocumented for your version, treat that gap as scope for a partner or for a test environment run first.
Who decides how long archives are kept?
Your organization decides retention, based on its legal, regulatory and business obligations, and the archiving design must implement that decision. DeployOpen does not set retention periods. Legal counsel, the compliance lead and the data owner for each exchanged service should agree the period, the deletion rule and who approves changes to them. The archive target then needs matching lifecycle settings, and the transfer must not delete a file before its retention period ends. Record the decision with the retention owner's sign-off so the configuration can be traced back to it during an audit, and revisit the rule when a service's legal context changes.
Does moving archives to long-term storage change their evidential value?
Moving archives can affect how they are presented as evidence, so confirm the effect with legal counsel before the transfer goes live. Signed archive files carry their signatures and timestamps, and the open question is whether the transferred copy can still be verified as the original. Ask counsel which chain of custody, hashing and access logging your jurisdiction expects for the new location. Then test that archived containers still verify after transfer and any decryption, using the retrieval and verification steps for signed documents in the message log and evidence group. Record the transfer steps and results so you can show how each copy was produced.
How DeployOpen scopes and delivers message log archive transfer
DeployOpen plans the transfer of X-Road message log archives as a fixed-scope engagement inside your own infrastructure. The written scope fixes which Security Servers, archive grouping, encryption and retention rules are covered before any work starts. We then build and test the transfer path, document it, and hand it to the team that will run it.
How we scope
- The written scope names the Security Servers and subsystems whose message log archives are in scope.
- It records the transfer method, whether the HTTP transporter script or other tooling is used, and who operates it.
- Archive encryption, file grouping and retention on the archiving side are agreed in writing before build starts.
How we build
- We configure the transfer job on each in-scope Security Server and confirm its file permissions and schedule.
- Encryption keys for archives are handled so they are covered by backups and kept out of configuration files and logs.
- We test a full transfer cycle, including restore of a sample archive, against the agreed retention rules.
How we hand over
- Deliverables include the configured transfer job, the archive encryption and grouping settings, and retention rules.
- Written runbooks cover where archives land, how to verify a transfer and how to recover a failed run.
- Your team walks through the runbook and operates a transfer under observation before handover is signed off.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- After any X-Road upgrade, the transfer job and archive settings are retested before they are relied on again.
- Ask for support hours, response expectations and escalation paths to be written into the retainer.

