Backups
Backups protect the WireGuard server keys, peer records, and admin state. Losing them means recreating peers by hand. Leaking them means rotating secrets. Neither is charming.
What To Back Up
For the Compose MVP:
kintunnel-data volume
kintunnel-backups volume
config/secrets
For Swarm:
kintunnel_data volume contents
kintunnel_backups volume contents
kintunnel_config volume contents
Back up:
- WireGuard server config.
- Peer config records.
- Admin service state.
- Deployment
.envstored outside public repos.
Backup Pattern
- Stop or pause writes to the admin UI.
- Archive the config directory or volume.
- Encrypt the archive.
- Store it away from the VPS.
- Test restore on a disposable host.
Compose Example
docker compose stop admin engine
docker run --rm -v kintunnel-data:/data -v "$PWD:/backup" alpine tar -czf /backup/kintunnel-data-backup.tar.gz /data
docker compose start engine admin
Encrypt before storage:
gpg -c kintunnel-data-backup.tar.gz
Restore
- Provision a replacement VPS.
- Install Docker and Compose.
- Restore the config directory to the expected path.
- Restore
.env. - Start the service.
- Confirm peers can connect.
- Confirm client public IP is the new VPS IP, unless DNS still points to the old server.