Skip to content

Upgrades and backups

Upgrade to a new release, roll back, back up and restore your data, schedule backups and send a support bundle.

Upgrade (Docker Compose)

Each release has a version number, for example 1.2.1. Read the release notes, then run these in the installation folder (for example /opt/vitalrix/vitalrix-onprem-1.2.0).

The version you run now. Note it: it is what you would roll back to.
Run
grep VITALRIX_VERSION .env
You should see
VITALRIX_VERSION=1.2.0
With internet access: downloads the release, checks it, backs up, then switches. Takes 1 to 5 minutes. Note the backup folder it prints.
Run
./vitalrix upgrade 1.2.1
You should see
Downloading VitalRix 1.2.1 from https://downloads.vitalrix.com…
Pulling downloads.vitalrix.com/vitalrix:1.2.1…
downloads.vitalrix.com/vitalrix:1.2.1
Upgrading 1.2.0 -> 1.2.1. A backup is taken first.
Backing up the database…
Backing up stored files (media, session replays)…
Backup written to backups/20261101T020000Z (468K). It contains secrets: keep it as safe as the server.
Waiting for VitalRix (database migrations run on start)…
Upgraded to 1.2.1.

If not: upgrade: could not download release 1.2.1: the version does not exist or the server is offline; nothing was changed. VitalRix 1.2.1 is not healthy yet: read ./vitalrix logs, then roll back with the backup it names.

Without internet access: give the path of the new offline bundle you copied to the server instead of the version.
Run
./vitalrix upgrade /media/transfer/vitalrix-onprem-1.2.1-amd64.tar.gz
You should see
Reading the bundle /media/transfer/vitalrix-onprem-1.2.1-amd64.tar.gz…
Loading the images…
Loaded image: caddy:2-alpine
Loaded image: postgres:16-alpine
Loaded image: redis:7-alpine
Loaded image: downloads.vitalrix.com/vitalrix:1.2.1
Upgrading 1.2.0 -> 1.2.1. A backup is taken first.
…
Upgraded to 1.2.1.

If not: upgrade: that bundle is for arm64 servers, this one is amd64: bring the bundle for this server's architecture.

Then sign in and check a page or two.
Run
./vitalrix status >/dev/null; echo exit=$?
You should see
exit=0

The upgrade puts the new image on the server before it changes anything, so a failed download leaves the installation as it was. It keeps your .env, license and certificates, adds any new setting with its default, and runs the database migrations when the new version starts.

Roll back (Docker Compose)

To go back to the previous release, set the old version again and restore the backup taken just before the upgrade (its folder name is printed by the upgrade, and backups/<time>/VERSION records the version it came from).

Roll back
# 1. set the version you upgraded from (do not start it yet)
sed -i 's/^VITALRIX_VERSION=.*/VITALRIX_VERSION=1.2.0/' .env

# 2. put back the backup the upgrade took; VitalRix starts on the old version when it finishes
./vitalrix restore backups/20261021T020000Z

Upgrade and roll back on Kubernetes

  • Back up your PostgreSQL database and the data volume first, with your usual tools.
  • Upgrade with helm upgrade vitalrix ./helm/vitalrix -n vitalrix -f my-values.yaml, using the chart from the new bundle.
  • Roll back with helm rollback vitalrix <revision> -n vitalrix. If the release you are leaving changed the database, restore the database backup too.

See Kubernetes upgrades.

Back up

Run
./vitalrix backup
You should see
Backing up the database…
Backing up stored files (media, session replays)…
Backup written to backups/20261022T101500Z (468K). It contains secrets: keep it as safe as the server.
Run
ls backups/20261022T101500Z/
You should see
VERSION  data.tar.gz  database.dump  env  vitalrix.license

This writes a new folder, backups/<time>/, while VitalRix keeps running. It contains:

What a backup contains
FileWhat it is
database.dumpA full PostgreSQL dump: settings, monitors, incidents, users and your telemetry.
data.tar.gzStored files: media uploads and session replays.
envA copy of .env, with every secret.
vitalrix.licenseYour license file, if one is installed as a file.
VERSIONThe VitalRix version that made the backup.

Schedule backups

Back up at least once a day and copy each backup to another machine, so losing the server does not lose the backups. For example, with cron (change the paths and the backup host to yours):

Daily backups with cron
# /etc/cron.d/vitalrix-backup: every day at 02:00, then copy the backup off the server
0 2 * * * root cd /opt/vitalrix && ./vitalrix backup >> /var/log/vitalrix-backup.log 2>&1 && rsync -a --delete backups/ backup-host:/srv/vitalrix-backups/

# keep 14 days of backups on the server
30 3 * * * root find /opt/vitalrix/backups -mindepth 1 -maxdepth 1 -type d -mtime +14 -exec rm -rf {} +
  • Check the log now and then, and restore a backup on a test server from time to time to be sure it works.
  • Backups grow with your telemetry. Watch the free disk space on the server and on the backup host.

Restore

Replaces all current data with the backup: type RESTORE when asked. VitalRix stops while it runs and starts again after. Then check ./vitalrix status and sign in.
Run
./vitalrix restore backups/20261022T101500Z
You should see
This replaces all current data with the backup from backups/20261022T101500Z. Type RESTORE to continue: RESTORE
 Container vitalrix-vitalrix-1  Stopped
 Container vitalrix-vitalrix-1  Started
Restored from backups/20261022T101500Z.

If not: no database.dump in …: the path is not a backup folder; list them with ls backups.

Restore on a new server

  1. Install the same version

    Run ./install.sh on the new server from the bundle of the version in the backup's VERSION file, with the same domain.
  2. Restore the backup

    Copy the backup folder to the new server and run ./vitalrix restore with it.
  3. Bring the secrets across

    Copy the secret values from the backup's env into the new .env, except POSTGRES_PASSWORD: keep the new server's database password. INTEGRATION_ENCRYPTION_KEY matters most, because stored integration credentials can only be read with it. Then run ./vitalrix restart.
  4. Put the license back

    If the license was installed as a file, copy vitalrix.license from the backup to license/. A license installed in the app is part of the database and comes back with it.

Get help: the support bundle

Run
./vitalrix support-bundle
You should see
Wrote vitalrix-support-20261022T101500Z.tar.gz. Send it to VitalRix support with a description of the problem.

This writes vitalrix-support-<time>.tar.gz with what VitalRix support needs to help you:

  • The VitalRix, Docker and Docker Compose versions and the operating system.
  • The containers and the health of every service.
  • The last 5,000 log lines of VitalRix, PostgreSQL, Redis and the proxy.
  • Your settings, with every secret value replaced by <redacted>.
  • Free disk space and memory.

Send the file to support@vitalrix.com with a description of the problem and your license ID from Settings › Billing. The logs can contain addresses and names from your systems, so look through the file first if that matters to you.

Something unclear or missing? Open VitalRix and use the in-app setup guides, or read Troubleshooting.