Skip to content

Backup and restore ​

sh
sudo nexhypro-ctl backup [--keep 7]
sudo nexhypro-ctl restore /var/lib/nexhypro/backups/nexhypro-<time>.nxb

A backup is one encrypted archive with:

  • the database dump;
  • /etc/nexhypro/nexhypro.env, including the secret key that seals the installation key;
  • the PKI (connector CA, NATS credentials) and the TLS certificate.

Archives are encrypted with the passphrase in /etc/nexhypro/backup.pass, created on the first backup. Keep a copy of the passphrase outside the panel: without it a backup cannot be restored.

The appliance backs up every night and keeps seven archives; update backups (pre-<version>) are kept separately. Copy the archives to another system.

Restoring stops the panel, restores the database, the configuration and the PKI, and starts it again. Connectors keep their identity, because the PKI is part of the backup.