Learn

Backup and import

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

Backup and import

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.

  1. Install WAF Gateway on a new machine.
  2. Create the admin account.
  3. Open Backup and import → Restore backup.
  4. Upload the .zip file. The gateway checks everything and shows a summary.
  5. Confirm. All your routes, rules, certificates and history are restored.
  6. Re-enter the AI assistant key, remote access settings and user accounts manually (they were not in the backup).