Skip to content

Backup and restore Since v0.1 ​

A backup is one file, encrypted with a passphrase (argon2id key, AES-256-GCM). It contains the configuration history, accounts and token hashes, bans, address lists, the audit log, the stored certificate and key files, and the management certificate.

It does not contain sessions, SIEM positions, request counts or pair settings. Security events are included only when you ask.

Before you begin ​

  • Role: admin.
  • Choose a passphrase of at least 12 characters. Without it the backup cannot be read.

Back up a node ​

text
1. Open System > Backup and import > Download a backup.
2. Enter the Passphrase and repeat it.
3. Turn on Include security events if you want them.
4. Select Download a backup.
sh
waap backup -o node.wbk -events

The CLI asks for the passphrase, twice on a terminal, or one line from standard input.

Restore onto a fresh node ​

Restoring replaces a whole node, so you do it on the server before waap starts.

sh
waap restore -i node.wbk -data-dir /var/lib/waap -node-id waap-a

Then start waap with that data directory. Restore refuses a data directory that already has configuration or accounts.

Format 1 configuration backups restore unchanged and keep their history. The next startup creates one audited system migration version. You do not convert the YAML by hand.

Replace certificate files

If the target already has certificate and key files that differ from the backup's, restore leaves them alone and reports them. Add -overwrite-files to replace them.

Settings reference ​

waap backup ​

FlagWhat it doesDefaultAllowed valuesApplies in
-oFile to write.none (required)pathall
-eventsIncludes the security events.offflagall

waap restore ​

FlagWhat it doesDefaultAllowed valuesApplies in
-iBackup file.none (required)pathall
-data-dirData directory to restore into. It must be fresh.datapathall
-node-idNode ID the restored node runs with; it names its audit chain.the host's defaultnode IDall
-overwrite-filesReplaces certificate and key files that differ from the backup's.offflagall

Troubleshooting ​

Restore refuses: the data directory already has configuration ​

  • Cause: restore never overwrites a node.
  • Fix: restore into an empty directory.