Wazuh backup and restore: why one copy of the server is not enough
If you run Wazuh, you need a recoverable deployment, and that starts with knowing that no single component holds everything. Wazuh has four parts: the Wazuh indexer, which is a full-text search and analytics engine that stores alerts; the Wazuh server, which analyzes agent data with decoders and rules; the Wazuh dashboard, which is the web interface; and the Wazuh agents installed on endpoints. The alerts and event history live in the indexer, while the configuration, rules, agent registration data and keys live on the server. A backup that covers only one side leaves you with either a search engine full of data that no server can act on, or a working server with no history. Plan for both as separate restore targets from the start.
Teams usually need a formal backup plan for three reasons. The first is retention: if your framework or internal policy requires you to keep security logs for a set period, the indexer snapshot is the copy that proves it. The second is recovery testing: a backup you have never restored is a hope, not a control, so you should schedule restore tests and record how long they take on your hardware. The third is cluster operation: when the server runs as a cluster, each node holds its own state, so the backup scope must cover every node, not only the master. Confirm the exact file list, service stop steps and snapshot repository setup in the Wazuh documentation for your installed version, since the current release line is 4.14 and the 4.14.9 release of 14 October 2026 is the latest patch you should check against. Review the Wazuh release notes before you finalize the procedure, because the steps can change between patch releases.
Which files and data the vendor guide covers
A Wazuh backup plan covers four distinct targets, and each one fails in a different way when it is lost. The vendor backup guide names the files for each target, but the exact list depends on your version and layout, so confirm it before you write a runbook.
Server configuration and rules
The Wazuh server keeps its main configuration file, along with custom decoders, custom rules, CDB lists and integration settings in its own directories. These hold the detection logic your team has tuned over time. Losing them does not stop the pipeline, but it can silently drop your custom detections after a rebuild. Confirm the directory list in the vendor backup section for your version, and check that custom content is included in the copy.
Components guideAgent keys and client state
The server stores a key for each enrolled agent, and agents hold their own key material. Without the server key set, enrolled agents can no longer authenticate and must be re-enrolled, which means touching every endpoint. Agent group assignments and per-agent state also live on the server side. Ask whether your backup captures the key store and whether a restored server keeps the same agent identities.
Dashboard configuration
The dashboard holds its own configuration file, certificates and saved objects such as index patterns, visualizations and saved searches that your SOC relies on. Saved objects are stored in the indexer, so they must be captured with the indexer data, not only as files. Losing dashboard settings means analysts rebuild views by hand. Check which dashboard files are covered by the vendor guide and whether your team keeps exports of custom views.
Indexed alert data
The Wazuh indexer stores alerts, archives and the index data behind dashboards. This is the largest target and the one that carries investigation history and evidence for incidents and audits. The vendor guide treats indexed data as a separate operation, usually a snapshot, rather than a file copy. Confirm the snapshot repository location, retention period and who can delete snapshots, because the indexer is where most of your historical evidence sits.
Cluster node-specific files
In a clustered server deployment, each node holds its own configuration and state, so a backup of one node does not capture the others. Plan a per-node backup for every server node and record which node owns which role. Ask the vendor guide which files differ between nodes and which are shared, and confirm the procedure before you rely on it.
Stopping the manager for a consistent copy
This sequence produces a copy of the Wazuh server databases and configuration files that was taken while nothing was writing to them, so the copy can be restored as a coherent set. The steps below describe the order of work; the exact commands must come from the vendor guide for your deployed version.
Confirm the version and the backup scope
Record the Wazuh server version and the list of server-side paths you plan to copy, using the vendor backup guide for that exact version as the reference. The owner of the Wazuh server confirms the scope with the team that restores it, including which configuration, rules, decoders, key and database locations apply to your installation. The step is done when the scope list is written down and matches the version under change control.
Schedule a maintenance window with agent owners
Agree a window in which new alerts and agent connections can pause, and tell the people who depend on the dashboard and on alert forwarding that data will not flow during the copy. The window length depends on how large your files and databases are, so measure a previous copy or test on a non-production system before you fix it. The step is done when the change record names the window, the approvers and the people who will be contacted if the window overruns.
Stop the manager services in the documented order
Using the stop commands listed in the vendor guide for your version, stop the Wazuh manager services on the server, and stop any cluster role that the guide says must be stopped first. Stopping the services stops writes to files such as the alert and queue data, so the copy reflects one point in time. The step is done when the service status shows each daemon as stopped and no process listed by the guide is still running.
Copy the files to protected storage
Copy the paths from the confirmed scope to a backup location that is separate from the server, and preserve file ownership, permissions and timestamps so the restored files behave as the originals did. Encrypt the copy and restrict access to it, because key material and configuration are included. The step is done when the copy completes without errors, and the file count and total size match the source listing you recorded before stopping the services.
Start the manager services again
Start the services in the order the vendor guide gives, and wait until each daemon reports healthy before moving on to the next. Do not start the services until the copy has finished, because restarting during the copy can make the two sets of files disagree. The step is done when every service reports running and the manager logs show no startup errors for the components you restarted.
Verify that agents reconnect
Watch the agent list in the Wazuh server or the dashboard and confirm that agents return to the active state within the time your environment normally takes to reconnect. Investigate any agent that stays disconnected by checking its connection and enrollment status against the troubleshooting guidance for agents. The step is done when the agent count is back to the level recorded before the window, or each missing agent has a documented reason and an owner.
Check the copy is usable
Confirm that the backup contains every path in the confirmed scope, that checksums match between source and copy where the storage supports it, and that the copy can be read by a test restore on a non-production system. Ask the vendor guide or your own restore runbook which configuration check to run on the restored host. The step is done when the test restore starts the manager services, and the restored configuration passes the validation the guide describes.
Record the result and close the window
Write down the start and end times, the version, the paths copied, the checksums, the agent count before and after, and any exceptions, then store the record with the backup. Keep the record with the backup set so an auditor or restore engineer can tie a copy to a specific server state. The step is done when the change ticket is closed with the record attached and the backup location is listed in your recovery inventory.
Per-node backups in single-node and cluster deployments
On a single-node deployment, one host carries the server state, the customizations you made by hand, the agent registration data and the indexed alerts, so one backup plan has to cover all of them. Check which components share a host in your layout, since the Wazuh components documentation describes the four parts separately even when they run together. A restore that brings back the server files without the indexed data, or the reverse, can leave agents enrolled against a server that no longer matches the stored alerts.
- Server configuration and customizations: copy the server configuration file and every custom decoder, rule and list you added, since these are the files your team edits directly.
- Agent registration data: back up the files that hold agent keys and enrollment records so enrolled agents can reconnect without re-enrolling. Confirm the exact file list for your version in the vendor guide.
- Dashboard settings: record the dashboard configuration, certificates and any credentials it uses, stored separately from the server.
- Database copies: stop the manager before copying its databases, as the vendor guide directs, and schedule the indexed-alert snapshot as a separate job.
- Restore test: rebuild on a clean host running the same release, restore both sets, and confirm agents reconnect and new alerts appear.
Check that your backup set lists every file the vendor guide names for your installed version and that a restore has been tested on a host running that same release.
In a Wazuh server cluster, the master and worker nodes each hold local files, and the cluster documentation describes which settings are shared and which stay on a single node. Because you cannot assume every file replicates, each node needs its own backup of its local state. The cluster can manage agent configuration and upgrades remotely, but a backup of one node does not automatically restore another node's local files. Confirm the synchronization behavior in the Wazuh documentation for your release before you decide what each node must hold.
- Master node: back up the master's configuration, its cluster settings and the files it uses to coordinate workers and distribute agent configuration.
- Worker nodes: back up each worker's own configuration and local state, including the agent connections it handles, on every worker rather than only on the master.
- Common customizations: keep a separate copy of custom rules, decoders and lists, so you can rebuild any node from known content.
- Restore order: restore the master and the workers in the sequence the cluster documentation describes, and confirm that agents reconnect to the restored nodes.
- Node inventory: record each node's name, role and backup location, so a replacement node can be matched to the right backup set.
Before relying on a cluster backup, confirm with the vendor guide which files each node holds locally and verify the restore order on a non-production cluster.
The Wazuh indexer stores alerts across its nodes, and the data is distributed in shards that live on more than one node. A file copy of one indexer node does not give you a consistent picture of the indexed alerts, so the cluster-wide copy of stored data should come from a snapshot rather than from individual node folders. Each indexer node still has its own configuration and certificate files that must be backed up on every node. Confirm the snapshot repository setup, supported storage targets and restore procedure in the indexer documentation for your version.
- Node configuration and certificates: back up the configuration and certificate files on every indexer node, since each node keeps its own copies.
- Snapshot repository: configure a snapshot repository that is reachable by all indexer nodes and separate from the production storage, and confirm the supported repository types.
- Snapshot schedule: run snapshots on a schedule that matches how much alert history you can afford to lose, and keep the snapshot job separate from the server backup.
- Version compatibility: record the indexer version with each snapshot, because the restore target must run a compatible version.
- Restore procedure: restore into a cluster sized for the data, then confirm that alert indices, index patterns and the dashboard show the expected data.
Before you rely on snapshots, confirm the repository settings and a full restore into a test cluster, since a snapshot that has never been restored is not yet proven.
Agents run on endpoints such as Linux, Windows and macOS hosts, and the endpoint owner usually holds the files that matter for the agent itself. The Wazuh server manages agent configuration centrally, so the central backups cover the rules and settings that define what each agent does. Recovering an agent after a host failure is often a reinstall and re-enrollment, but the vendor documentation should be checked for whether enrollment keys and local state can be preserved on a rebuilt host. Treat endpoint recovery as a separate plan from the central components.
- Central configuration: the server-side group and agent configuration is the authoritative copy, so back it up with the server, not on endpoints.
- Local agent state: confirm which local files an agent keeps and whether they must survive a rebuild, using the agent documentation for each operating system.
- Re-enrollment steps: document the enrollment command, the group assignment and the credentials needed, so a rebuilt host can rejoin without guesswork.
- Ownership of recovery: name who restores endpoint agents, since the security team and the platform team often split this work.
- Failure testing: rebuild a sample agent from scratch on each operating system you run and confirm it appears in the correct group.
Before a host failure, check that the central configuration backup is current and that the re-enrollment steps work on each operating system in your environment.
Why indexed alerts need a separate snapshot process
Copying the Wazuh server files does not back up the alerts you investigate and report on. Alerts are stored in the Wazuh indexer, a full-text search and analytics engine, so they need their own process: the indexer's snapshot mechanism, writing to a snapshot repository that the indexer nodes can reach. Treat this as a separate backup stream with its own owner, schedule and restore test, not as a side effect of the server backup. Before you rely on it, confirm the repository types, registration steps and snapshot settings in the indexer documentation for your deployed version.
Retention is the decision that matters most here. Recent alerts stay searchable in the indexer, which is what analysts and dashboards query day to day. Long-term retention for audit or legal needs is a different requirement, and it is often met by keeping snapshots or archives outside the live cluster. Work out how long each class of alert must remain searchable, how long it must be kept at all, and who may delete old snapshots. Check how your retention policies in the indexer interact with snapshot lifecycle, so that a deletion in the live index does not silently remove the only copy you need.
The snapshot repository is a dependency you must plan for. It needs network reachability from every indexer node, sufficient capacity, and protection that matches the sensitivity of the alert data, including access restricted to the backup account. Ask your team to confirm the repository location, the credentials it uses and the retention settings in writing, then run a test restore into a separate environment. A snapshot that has never been restored is not yet evidence that your alerts can be recovered.
Two backup paths meet in one off-site copy
Agent events enter the Wazuh server cluster, where the master and worker nodes analyze them and send alerts to the Wazuh indexer, which the dashboard queries. Two backup paths start from there. The server path copies configuration and keys to a file backup, and the indexer path writes alert snapshots to a snapshot repository. Both paths feed the isolated off-site copy. Check that each path has its own restore test and that the off-site copy is kept apart from the systems it protects.
Configuration, key and alert snapshot paths from agents to an off-site copy.
Backup options and when each fits
This table compares four ways to back up a Wazuh deployment: stopped-service file copies, scheduled file copies, indexer snapshots, and host or volume backups with external tools. Read each row for the fit and the trade-off, then check the Wazuh-specific steps against the vendor guide, since external tools only copy data and do not know Wazuh's file layout or database consistency rules.
| Option | Best fit | Main trade-off | Wazuh-specific steps from |
|---|---|---|---|
| Manual file copy with services stopped | Small single-node manager where a short outage is acceptable and consistency matters most | Requires downtime and a person to run it; easy to forget the step | Vendor backup guide, which lists the server files and the database copy steps |
| Scheduled file copies of configuration and state | Routine capture of rules, decoders, custom configuration and keys between full backups | Live copies can capture inconsistent state unless the vendor guide allows it for that path | Vendor backup guide for which paths are safe to copy while running |
| Indexer snapshots to a repository | Preserving indexed alerts and archived events, which the server file copy does not cover | Needs a configured snapshot repository and separate restore steps; does not replace server backups | Vendor indexer documentation for repository setup and snapshot policy |
| External tool with host or volume backup (for example Bareos or Proxmox Backup Server) | Organizations that already run a backup platform and want one schedule, retention and encryption policy | Copies whole hosts or volumes without Wazuh awareness, so a restore still needs consistency checks | Vendor guide for what to stop or copy; the tool itself is generic |
| Kubernetes volume backup (for example Velero) | Wazuh components hosted on Kubernetes that need persistent volume copies to object storage | Snapshot timing may not match database state; verify restored components before trusting them | Vendor deployment guide for Kubernetes; Velero is a generic option |
| Per-node backups in a Wazuh server cluster | Clusters where each node holds its own state and must be captured on its own schedule | Every node needs coverage; missing one leaves gaps that a central copy will not show | Vendor cluster documentation for which node files differ |
| Backup tools with encryption and separate storage | Meeting expectations for protected, isolated recovery copies | Encryption keys and storage access need their own custody and testing | Your control framework requirements, mapped to the vendor steps |
Testing restores before you need them
A backup is only proven once a restore has succeeded on a separate host. Until someone has rebuilt a Wazuh manager, indexer and dashboard from the saved files and snapshot, the team holds copies of data, not a recovery capability. Run the test on a host that shares nothing with production (no shared storage, no shared agent keys, no live agent connections), so a restore cannot disturb the monitored estate. Record what was restored, which version it was restored to, and how long the steps took, because that record is the starting point for the recovery process that CIS Safeguard 11.1 asks you to document and review annually.
Work through the checks in a fixed order and treat each one as a pass or fail. First, confirm the configuration files restored intact and that the manager starts cleanly with them. Second, check agent reconnection: restored agents should appear and report, and any agent that does not reconnect points to a missing key, certificate or address change that the test should expose before an incident does. Third, log in to the dashboard, confirm the SSO or local login path works, and confirm the API responds. Fourth, query the restored alert indices from the dashboard and confirm recent events return with the expected time range. An index that restores but cannot be searched is a failed test, not a partial success.
The test also serves DORA Article 11(6), which requires ICT response and recovery plans to be tested at least yearly and after substantive changes, including switchovers to backups. Schedule a test after every Wazuh upgrade, certificate rotation or change to the indexer layout, since each can break a restore that worked before. Ask your implementation partner or internal team to write the test steps into the recovery runbook and to name the person who signs off the result. Confirm the exact restore commands and snapshot repository settings for your installed version against the Wazuh documentation before you rely on them.
Protecting backup data and access
A Wazuh backup is only useful if it survives the same failures it protects against. The cards below cover what backups contain, where copies should live, and who can touch them. Each control reduces a different way a restore can fail or be abused.
Backups hold secrets
Wazuh backups include configuration, certificates, private keys and credentials used for agent enrollment, API access and indexer connections. Treat every backup as sensitive material. Encrypt backup archives at rest or store them in a separate, access-controlled location, in line with the expectation that recovery data is protected like the original data (CIS Safeguard 11.3). Confirm which files contain secrets before you choose the encryption approach.
Wazuh release notesKeep an isolated copy
A copy stored on the same hosts, storage array or network as the manager can be lost in the same incident. Keep at least one copy that is offline, off-site or in version-controlled storage that the production environment cannot reach or overwrite (CIS Safeguard 11.4). Ask your team where that copy lives, how often it is refreshed and how long it takes to bring it into service.
Restrict administrator access
Limit who can read, copy, restore or delete backups, and separate those rights from the day-to-day Wazuh administrator role. Unprivileged accounts should not be able to reach backups that belong to other users or systems. Review the access list on a schedule and record who holds backup rights, since a restore path that anyone can open is also a path for an attacker.
Block deletion by the admin account
Retention only protects you if the account that runs backups cannot shorten or erase them during the retention period. This aligns with the Essential Eight expectation at maturity level 3 that backup administrators cannot modify or delete backups until retention ends. Ask whether your storage platform supports write-once or object lock settings, and test that a routine admin login cannot remove recent copies.
Essential Eight modelKeep backups out of the monitored system
Do not store backup archives on the Wazuh server or indexer hosts they protect, and do not let the Wazuh pipeline be the only place where recovery data is visible. If the monitored system is compromised, its backups should still be reachable from a clean location. Document which hosts hold backup copies and confirm that agents on those hosts do not hold write access to the backup store.
Harden certificates and credentials first
A restored system with old certificates, default passwords or exposed API credentials can reopen the access you were trying to close. Rotate or review certificates, API users and indexer credentials as part of the restore plan, and cover the details in the Wazuh security hardening topic. Record which secrets a restore requires and where they are kept outside the backup itself.
Backup questions buyers ask before hiring help
What drives the cost and effort of a Wazuh backup design?
The main drivers are how many components you run, how they are laid out, and how much data must be recovered and how fast. A single-node all-in-one installation has fewer moving parts than a multi-node indexer with a Wazuh server cluster, where each node carries its own state. Other drivers include the number of agents and their criticality, the retention period, where backup copies are stored, whether they must be encrypted or kept isolated from the production systems, and how many recovery procedures your policies require. Cost has two parts: the design work, which is largely one-time, and the recurring effort of running backups, testing restores and updating the procedure after each Wazuh upgrade. Ask any provider for a written scope that lists the components covered, the storage target, the recovery objectives you have set, and the number of restore tests included.
Can our team design and run Wazuh backups without a partner?
Yes, many teams do. The vendor documentation describes which files and directories to copy for the central components, and it explains when the manager must be stopped before a database copy so the data is consistent. A capable team with Linux administration experience, a documented backup policy and a restore test host can cover the basics internally. Where a partner adds value is in the parts that are easy to skip: deciding recovery priorities, separating backup credentials from production credentials, building an isolated copy, and proving that a restore works with the exact versions in use. Your own team should confirm the current backup steps for your Wazuh release line in the official documentation before relying on any script.
What does the work need from our side before it starts?
Expect to provide several things before any backup work begins:
- Administrative access to each Wazuh host, or a change window during which an engineer you approve performs the steps with you.
- A non-production test host of the same Wazuh version, where restores can be rehearsed without touching live data.
- Backup storage with capacity you have sized, in a location your policy allows, with a separate access path from the production systems.
- A change window for stopping the manager during database copies, agreed with the operations and SOC teams who depend on alert flow.
- Written answers on retention, encryption requirements and who may approve a restore.
Without these inputs, the design will rest on assumptions that tend to surface during the first real incident.
How long does Wazuh backup setup take for our topology?
Duration depends on topology and data volume more than on the backup tool itself. A single all-in-one server with a small number of agents is a short job compared with a clustered deployment, where each node needs its own backup and the restore order must be documented. Indexed alert data is usually the largest item, and copying it through a snapshot repository takes time that scales with the size of the index. Testing adds time, because a restore that has never been rehearsed is not yet a working plan. Ask for a timeline tied to the written scope, and check whether it includes the restore test and the documented procedure. No general duration is given here, so confirm the estimate against your own environment and data volume.
Should a restore test be part of the backup scope?
A restore test should be in scope. A backup that has not been restored is an assumption, and regulators and auditors increasingly ask for evidence that recovery works. The DORA regulation requires financial entities to test ICT response and recovery plans at least yearly and after substantive changes, including switchovers to backups, and the CIS Controls v8.1 Safeguard 11.1 asks for a documented data recovery process. Ask that the test restores into an isolated host, checks that agents reconnect and alerts are queryable, records the time taken, and produces a short report. Confirm with your auditors which evidence they will accept, since a test record is only useful if it matches what they expect to see.
What changes when we run a Wazuh cluster or use Wazuh Cloud?
In a cluster, the Wazuh server runs as several nodes, so backup planning must cover each node and the procedure for restoring them in the right order, which the vendor documentation describes. Cluster work also adds more files and a higher chance of inconsistent copies if nodes are captured at different times. With Wazuh Cloud, the vendor operates the managed service, so the vendor's backup and recovery arrangements apply, and your own responsibility shifts to agent configuration, retention choices you can control and any exports you keep. Self-hosted software is open source under the GNU General Public License version 2 with an OpenSSL linking exception, and it carries no license fee, so backup costs are your infrastructure and labor costs. Confirm exactly what the Wazuh Cloud plan covers for backup and restore before assuming any coverage.
Do backups need to be isolated from the Wazuh servers?
Yes, for most regulated environments. The CIS Controls v8.1 Safeguard 11.3 asks that recovery data be protected like the original, through encryption or data separation, and Safeguard 11.4 asks for an isolated copy such as an offline, cloud or off-site version-controlled backup. Essential Eight maturity level 3 also expects that backup administrators cannot modify or delete backups during their retention period. Isolation matters because a compromise of the monitoring platform should not also destroy its evidence. Plan separate credentials, immutable or write-once storage where your platform supports it, and encryption keys held apart from the backup files. Confirm which of these controls your storage product provides before you specify it.
How DeployOpen scopes and delivers Wazuh backup and restore
DeployOpen starts by mapping which Wazuh components, nodes and data stores need protection, then agrees the backup and restore method in writing before any work begins. The engagement covers the central components, agent-side material, and the separate snapshot path for indexed alerts, with restores tested in your own infrastructure.
How we scope
- Inventory the manager, indexer, dashboard and any cluster nodes, and record which configuration and key files each one holds.
- Agree the backup frequency, retention period and storage location for each component in the written scope.
- Confirm with your team who holds backup administrator rights and how restore approvals are granted.
How we build
- Script per-node backup jobs, including the manager stop and database copy steps your Wazuh version requires.
- Configure the indexer snapshot repository separately, with access controls and encryption on the backup storage.
- Test restores on a non-production copy and record the time and steps each restore actually takes.
How we hand over
- Deliver runbooks for backup, restore and cluster node recovery, written for the operators who will run them.
- Document the restore test results, known gaps and the controls that map to your recovery requirements.
- Walk your operations team through a live restore so they can repeat it without DeployOpen present.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover.
- Retest backup and restore procedures after Wazuh upgrades or substantive changes to the environment.
- Review backup job results and snapshot health on the agreed schedule under the retainer terms.

