Skip to content

Docker backups and moving to another host

VolumeContainer pathHolds
config/config.env, install ID (your license activation), database password (single container).
writable/app/writableRuntime data, logs, panel backups.
uploads/data/uploadsBrand images, group images, uploads.
db/var/lib/mysqlThe database (single container: your own folder at this path).
caddy/data/caddyCertificates of the bundled proxy.
backups/backupsDatabase dumps (last 5 pre-update dumps are kept).
Terminal window
./nexovirt backup

This writes /backups/backup-<version>-<timestamp>.sql.gz in the backups volume. Every update also writes pre-<old>-<new>-<timestamp>.sql.gz first. Copy dumps off the host: a backup on the same disk is not a backup.

Settings > Panel backups works as before (schedule, SFTP or FTP copy).

Terminal window
./nexovirt restore /backups/<dump>.sql.gz

The panel is stopped meanwhile, the tables are dropped, and the dump is loaded. If the dump is from an older version, start that image version.

  1. On the old host, stop the stack: docker compose stop. Copy the volumes config, writable, uploads and caddy (and db, or a fresh dump) to the new host.
  2. On the new host, put the same .env and compose.yml next to the nexovirt script. Restore the volumes.
  3. Point the DNS name at the new host. Start with docker compose up -d.

Because the install ID lives in config, the license stays active. Nodes keep working when NEXOVIRT_PUBLIC_URL still resolves to the panel.

NexoVirt is developed and designed by Nucez Software, your partner for custom software and web design.