Backup and import
The Backup and import page lets you export, import and restore your configuration.

Options
| Action | What it does |
|---|---|
| Download configuration (JSON) | The running configuration as a JSON file. Does not include secrets (API key values) unless you tick Include secrets. |
| Import | Upload a JSON file. A preview shows every change before anything is applied. The import is refused if it would result in an invalid configuration. |
| Download backup (.zip) | A full backup with every configuration version. With Include secrets, also includes certificates with their private keys and API key values. Keep this file safe and encrypted. |
| Restore backup | Upload a .zip backup. The gateway checks every version before applying anything, then replaces the history. The previous config.db is kept in the data folder as a safety copy. |
What is NOT in a backup
- User accounts, passwords and two-factor keys (
identity.db) - Remote access settings
- The AI assistant key
- The request log and traffic history
- Banned addresses
- The location cache
These belong to the specific machine, not the configuration.
Best practice
- Download a backup before every larger change and before every upgrade.
- Store the backup off the machine (another computer, cloud storage).
- If the backup includes certificates and API keys, keep it encrypted.
Example: restoring after a disaster
The gateway's machine fails. You have a .zip backup from yesterday.
- Install WAF Gateway on a new machine.
- Create the admin account.
- Open Backup and import → Restore backup.
- Upload the
.zipfile. The gateway checks everything and shows a summary. - Confirm. All your routes, rules, certificates and history are restored.
- Re-enter the AI assistant key, remote access settings and user accounts manually (they were not in the backup).