Docker backups and moving to another host
What holds your data
Section titled “What holds your data”| Volume | Container path | Holds |
|---|---|---|
config | /config | .env, install ID (your license activation), database password (single container). |
writable | /app/writable | Runtime data, logs, panel backups. |
uploads | /data/uploads | Brand images, group images, uploads. |
db | /var/lib/mysql | The database (single container: your own folder at this path). |
caddy | /data/caddy | Certificates of the bundled proxy. |
backups | /backups | Database dumps (last 5 pre-update dumps are kept). |
Make a dump
Section titled “Make a dump”./nexovirt backupThis 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).
Restore on the same host
Section titled “Restore on the same host”./nexovirt restore /backups/<dump>.sql.gzThe 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.
Move to another host
Section titled “Move to another host”- On the old host, stop the stack:
docker compose stop. Copy the volumesconfig,writable,uploadsandcaddy(anddb, or a fresh dump) to the new host. - On the new host, put the same
.envandcompose.ymlnext to thenexovirtscript. Restore the volumes. - 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.