Appearance
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 -eventsThe 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-aThen 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
| Flag | What it does | Default | Allowed values | Applies in |
|---|---|---|---|---|
-o | File to write. | none (required) | path | all |
-events | Includes the security events. | off | flag | all |
waap restore
| Flag | What it does | Default | Allowed values | Applies in |
|---|---|---|---|---|
-i | Backup file. | none (required) | path | all |
-data-dir | Data directory to restore into. It must be fresh. | data | path | all |
-node-id | Node ID the restored node runs with; it names its audit chain. | the host's default | node ID | all |
-overwrite-files | Replaces certificate and key files that differ from the backup's. | off | flag | all |
Troubleshooting
Restore refuses: the data directory already has configuration
- Cause: restore never overwrites a node.
- Fix: restore into an empty directory.