Backup and restore
Backup — writes an encrypted bundle of the user store, API keys, session store, and system config to a file:
sudo /opt/bng-deploy/bin/qt-auth-backup.sh /path/to/backup.tar.gz.enc
You'll be prompted for a passphrase. Store both the file and the passphrase somewhere durable.
Restore on a fresh install:
sudo /opt/bng-deploy/bin/qt-auth-restore.sh /path/to/backup.tar.gz.enc
The restore replaces /opt/bng-deploy/data/{users,api_keys,sessions}.json and restarts bng-deploy. It does NOT restore subscribers/plans/pools — those live in the controller's controller.db and roll over from install to install; snapshot via About → Snapshot in the webui.