{% extends "base.html" %} {% block title %}Backup & Restore - Enterprise VPN Hub{% endblock %} {% block content %}

Settings & User Data Backup

Export, encrypt, and restore user accounts, WireGuard keys, OpenVPN certificates, and system configurations.

← Return to System Updates
🔐 Sensitive Data Protection: Backups contain user credentials, WireGuard private keys, and OpenVPN certificates. It is strongly advised to protect backups with an AES-256 encryption password before saving to external storage.

💾 Create Secure Backup

Export

Packages all users, credentials, WireGuard & OpenVPN keys, site-to-site endpoints, and server settings into a single downloadable snapshot.

Encrypts the archive using industry-standard AES-256-CBC with PBKDF2 key derivation.

â†Šī¸ Restore from Backup File

Overwrite

Upload an exported backup file (.enc or .tar.gz) to restore all user accounts and settings.

📂
Drag & drop backup file here, or click to browse
Supports encrypted .enc and unencrypted .tar.gz
Required if the uploaded file is encrypted with AES-256.

đŸ—„ī¸ Local Backup Repository

Saved in /var/backups/vpn-data/
{% if backups %} {% for b in backups %} {% endfor %}
Backup Archive Security Created Timestamp Size Note / Description Actions
{{ b.filename }} {% if b.encrypted %} 🔒 AES-256 Encrypted {% else %} 🔓 Unencrypted {% endif %} {{ b.created_at }} {{ b.size_kb }} KB {{ b.note or '—' }} âŦ‡ī¸ Download {% if b.encrypted %} {% else %} â†Šī¸ Restore {% endif %} đŸ—‘ī¸
{% else %}

No local data backups found. Create a snapshot backup before performing updates to protect user accounts and configurations.

{% endif %}
{% endblock %}