Move an installation
An installation keeps its data in four places: PostgreSQL (flows, runs, datasets, accounts, settings and the license), object storage (images, annotations, models and reports), Qdrant (the embedding index) and Redis (queues and caches only, which the API rebuilds). Each of them either runs inside the installation (bundled) or is a service you operate yourself (external), such as a managed database or a cloud bucket.
- Between Docker Compose and Kubernetes,
ovalbee upgrade --backendmoves the installation for you: it copies what is bundled and connects the new installation to what is external. See With the CLI. - Between a bundled and an external service, for example from the bundled PostgreSQL to a managed one, or from the bundled storage to an S3 bucket, you move the data yourself with the commands below. See By hand.
Make one move at a time and keep the platform version unchanged during the move. If you also need an upgrade, do it first.
Between Docker Compose and Kubernetes with the CLI
Kubernetes runs the enterprise edition only. A Docker Compose installation that holds a paid license needs no file: the CLI reads the license from the installation. Otherwise pass --activation FILE.
Run ovalbee upgrade on a terminal without options to choose the same in a few questions. --dry-run prints the plan and stops. The plan lists:
- what is copied: the bundled PostgreSQL, the bundled RustFS object storage, the Qdrant collections, the secrets and the license with the installation ID;
- what is kept: every external service, which the new installation is connected to as the old one was;
- the steps, the warnings (node runs that would fail, settings that are not carried over) and how to roll back.
What is copied and how
Three stored settings depend on where the installation runs, so the copy is adjusted to the new side: the storage providers that pointed at the bundled storage get its new address, the public URL becomes the new address when it was still the old one, and the executor moves between Docker and the Kubernetes cluster the release runs in. A model deployment does not move: start it again on the new side.
Order, downtime and checks
The move copies first and switches after:
- The new installation is created next to the old one with its API stopped. On Kubernetes the release is installed with
api.replicaCount: 0and the database setup Job off; on Docker Compose only PostgreSQL, Redis, RustFS and Qdrant start. - The old installation’s API is stopped, so nothing changes while the data is copied. OvalBee is unavailable from this step until the switch. Its databases keep running for the copy.
- The data is copied and compared, and the stored settings are adjusted.
- The new installation starts. The CLI checks with
ovalbee-admin statusandovalbee-admin license getin its API that every dependency answers, no migration is pending, every stored secret still decrypts and the installation ID is the old one. - Only then is the old installation stopped:
docker compose stop, or every workload scaled to zero with its replica count recorded. Nothing from the old installation is deleted.
If a step fails, the CLI starts the old installation’s API again and leaves the new one as it is. Run the same command again to copy into it once more, or remove it: on Kubernetes helm uninstall, then delete the release’s PersistentVolumeClaims and the <release>-migration ConfigMap; on Docker Compose docker compose down --volumes in the new directory, then the directory.
Rolling back
The CLI records the new installation under the context you moved, and the old one as <context>-previous. To go back:
Anything done on the new installation after the switch is not in the old one. When the database is external, both installations use it, and the move changed the three settings above in it: the plan prints the SQL that puts them back; run it before you start the old installation.
Between bundled and managed services, by hand
These moves have the same shape as the CLI’s: stop everything that writes, copy, point the installation at the new service, start it and check it, and keep the old data until you are sure. Plan for the API to be down for the length of the copy.
Stop the application, keeping the data services running:
Let active node runs finish first, or cancel them: they fail when the API stops.
PostgreSQL
The bundled server is PostgreSQL 18. Restore into a server of the same major version or a newer one, and dump with the bundled server’s own pg_dump, which matches its version. --no-owner --no-acl leaves out the bundled database’s user (postgres on Docker Compose, ovalbee on Kubernetes), so the objects belong to the user that restores them.
From the bundled server to a managed one:
Without a PostgreSQL 18 client on the machine, run pg_restore from the image: docker run --rm -i -e PGPASSWORD postgres:18.0-alpine pg_restore -h db.example.com ... < ovalbee.dump.
Point the installation at it:
- Docker Compose: in
.env, setOVALBEE_POSTGRES_HOST,OVALBEE_POSTGRES_PORT,OVALBEE_POSTGRES_DB,OVALBEE_POSTGRES_USER,OVALBEE_POSTGRES_PASSWORDandOVALBEE_POSTGRES_SSL(disable,requireorverify-full), thendocker compose up -d. The bundledpostgresservice keeps running unused, with the old data. - Kubernetes: set
postgres.type: external,postgres.external.host,port,database,username,passwordandpostgres.ssl, thenhelm upgradewith those values. The bundled PostgreSQL is removed from the release; its PersistentVolumeClaim stays.
To move back, dump the managed database the same way (pg_dump -h db.example.com -U ovalbee_app ...) and restore it into the bundled one, which must be empty: on Docker Compose docker compose exec -T postgres pg_restore -U postgres -d ovalbee --no-owner --no-acl --single-transaction --exit-on-error < ovalbee.dump after recreating the database with dropdb/createdb, then set the OVALBEE_POSTGRES_* settings back to postgres, 5432 and the bundled user.
Check that every table arrived, on the old and the new database, and compare the two outputs:
Object storage
The bundled storage is RustFS, an S3-compatible store. OvalBee keeps every workspace’s files in one bucket, ovalbee unless you changed it (the workspace storage bucket of Admin → Configuration → Storage): each workspace under workspaces/<id>/, and account pictures under users/<id>/. Database rows refer to files by these keys, so copy the bucket as a whole and keep every key as it is. The new bucket may have another name. Buckets you routed to the bundled storage yourself copy the same way.
Reach the bundled storage from your machine:
Copy with rclone, which reads from one store and writes to another. The bundled storage’s keys are OVALBEE_STORAGE_ACCESS_KEY and OVALBEE_STORAGE_SECRET_KEY in .env, or objectStorage.accessKey and secretKey in the chart’s values:
For Google Cloud Storage use RCLONE_CONFIG_CLOUD_TYPE=gcs, for Azure Blob Storage azureblob, with their own credentials. With only the AWS CLI, copy in two steps through a local folder, since one command reaches one endpoint: aws s3 sync s3://ovalbee ./ovalbee-files --endpoint-url http://127.0.0.1:9000, then aws s3 sync ./ovalbee-files s3://my-ovalbee-bucket.
Then, in Admin → Configuration → Storage, change the provider the workspace storage uses (default) to the new store, with its endpoint, region and keys (or add a provider and select it), and set the workspace storage bucket if its name changed. On Kubernetes, if config.settings declares the object storage, change it there instead and run helm upgrade. Start the API and run ovalbee-admin status: storage must be ok.
Back to the bundled storage: on Docker Compose RustFS always runs; on Kubernetes set objectStorage.enabled: true with objectStorage.accessKey and secretKey and run helm upgrade. Create the bucket and copy the other way (rclone mkdir bundled:ovalbee, then rclone sync cloud:my-ovalbee-bucket bundled:ovalbee), and set the provider back to the bundled endpoint, http://object-storage:9000 on Docker Compose or http://<release>-object-storage:9000 on Kubernetes, with the bundled storage’s keys.
Qdrant
The Helm chart always runs its own Qdrant. A Docker Compose installation can use a Qdrant you run (OVALBEE_QDRANT_URL); that Qdrant must have QDRANT__SERVICE__JWT_RBAC=true and the same API key as OVALBEE_QDRANT_API_KEY, which the API signs per-collection tokens with.
Move the collections with Qdrant’s snapshots, collection by collection. Reach the bundled Qdrant like the bundled storage (publish port 6333 in docker-compose.override.yml, or kubectl port-forward service/ovalbee-qdrant 6333:6333), with the key in a header:
Compare POST /collections/<name>/points/count with {"exact": true} on both sides, then remove the snapshot from the old Qdrant with DELETE /collections/<name>/snapshots/<name>. Set OVALBEE_QDRANT_URL (and the key, if it changed) and start the API.
Redis
Redis holds only queues, schedules and caches, which the API rebuilds when it starts: point the installation at the other Redis and nothing is lost. Docker Compose: OVALBEE_REDIS_HOST, OVALBEE_REDIS_PORT, OVALBEE_REDIS_USER and OVALBEE_REDIS_PASSWORD. Kubernetes: redis.type: external with redis.external.*.
Finish and roll back
Start the application (docker compose up -d, or helm upgrade, or scale the API back) and check:
On Kubernetes run the same through kubectl --namespace ovalbee exec deployment/ovalbee-api -c api -- ovalbee-admin .... Until you are sure, keep the old data: the bundled volumes stay as they were, and going back is setting the old connection settings again and starting the API. Changes made after the switch exist only on the new service.
Related pages
- Self-hosted installation — what an installation consists of and how it is configured.
- Install on Kubernetes — the Helm chart and its values.
- OvalBee CLI —
ovalbee upgradeand its options.