Install Kivo
Updates & backups
Update Kivo, back up, restore and move servers.
Keep Kivo up to date and backed up. Commands assume the Docker Compose setup in /opt/kivo; adjust kivo if your POSTGRES_USER or POSTGRES_DB differ.
Updates
cd /opt/kivo
docker compose exec -T postgres pg_dump -U kivo -Fc kivo > ~/kivo-before-update.dump # back up first
sed -i 's/^KIVO_VERSION=.*/KIVO_VERSION=<new-version>/' .env # e.g. 1.0.0
docker compose pull # the new invicly/kivo and invicly/kivo-migrate
docker compose up -d
docker compose ps # migrate: Exited (0); app: healthy
curl -fsS http://127.0.0.1:3000/api/health/readyCompose runs the new migrate image first and starts the new app only if the migration succeeded. Available versions are the tags of invicly/kivo on Docker Hub; this Kivo Control's guides currently use 1.0.0. On container platforms: run the new invicly/kivo-migrate job, then roll out the new invicly/kivo tag.
To roll back, set the previous KIVO_VERSION and run docker compose up -d — but only if the newer version didn't migrate the database; otherwise restore the backup taken before the update.
Also refresh the compose file now and then, in case it changed: curl -fsSL https://kivo-control.invicly.com/install/files/docker-compose.yml -o docker-compose.yml (your .env stays as it is).
Keep the operating system patched too: sudo apt-get update && sudo apt-get upgrade, or turn on unattended upgrades.
Backups
Everything — time entries, settings, logos — is in PostgreSQL. Also keep a copy of .env: without the same AUTH_SECRET, two-factor setups can't be read.
Nightly with cron (bundled database)
sudo mkdir -p /var/backups/kivo
sudo tee /etc/cron.d/kivo-backup > /dev/null <<'EOF'
30 2 * * * root cd /opt/kivo && docker compose exec -T postgres pg_dump -U kivo -Fc kivo > /var/backups/kivo/kivo-$(date +\%F).dump && find /var/backups/kivo -name '*.dump' -mtime +14 -delete
EOFCopy backups off the server:
aws s3 cp /var/backups/kivo/kivo-$(date +%F).dump s3://<bucket>/kivo/ # AWS S3
az storage blob upload --auth-mode login --account-name <account> -c kivo-backups -f /var/backups/kivo/kivo-$(date +%F).dump -n kivo-$(date +%F).dump # Azure
gcloud storage cp /var/backups/kivo/kivo-$(date +%F).dump gs://<bucket>/kivo/ # Google CloudManaged database
Turn on the provider's automated backups and point-in-time restore. For your own copies:
docker run --rm postgres:16-alpine pg_dump "postgresql://kivo:change-me@<db-host>:5432/kivo?sslmode=require" -Fc > kivo-$(date +%F).dumpRestore
cd /opt/kivo
docker compose stop app
docker compose exec -T postgres pg_restore -U kivo -d kivo --clean --if-exists --no-owner < /var/backups/kivo/kivo-2026-09-28.dump
docker compose run --rm migrate # brings an older backup up to the current schema
docker compose start appRestore the matching .env as well. Test a restore now and then, on a separate server.
Moving to a new server
- Back up the database and copy
.envto the new server. - Install Kivo there and restore the backup.
- In your portal, deactivate the old installation.
- On the new server, open Settings → License and activate the key again.
Checklist before going live
AUTH_URLis the realhttps://address, andAUTH_SECRETis random and backed up.- The database has automated backups and isn't reachable from the internet.
- Port 3000 isn't reachable from outside; only 80 and 443 are open.
- Email works: sign up with a real address and receive the code.
- Your load balancer or monitoring uses
/api/health/ready. - The workspace license is active and shows in your portal.
Next