Moving Open WebUI to a new server without losing files or vectors
Most moves of an existing Open WebUI installation to new hardware, a new VM or a new container host are file-level relocations: you copy the entire data directory and keep the same secret key. The data directory holds webui.db together with uploaded files, knowledge base documents and the local vector store, so the database is only one part of the state. Keeping the same secret key matters because Open WebUI uses it to sign session tokens, and a changed key invalidates the tokens users already hold. Confirm the exact data path, the key variable and any other secret-dependent settings in your own deployment before you start the copy.
The effort depends on three things: your storage layout, whether Redis, PostgreSQL or an external vector database are already in use, and how much verification your team needs. A single-replica installation with SQLite and the embedded vector store is mostly a copy plus a configuration check. If PostgreSQL, Redis or shared file storage are already in place, each service holds its own state, so you must move and verify each one. The Open WebUI scaling guide limits SQLite to single-replica use on locally attached SSD or NVMe storage, so a move onto network-attached disk changes the setup you can safely run and should be reviewed before cutover.
After the move, check the things that copying webui.db alone would miss: uploaded files open, knowledge bases return results for a test query, chat history and model settings appear, and an existing API key still works. Then test sign-out on the new host. Without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks, so a stolen token can remain usable after a user signs out. Ask your team to decide in advance how long the old host stays available for rollback, who signs off on the checks, and when the old data directory is deleted.
What moves cleanly and what needs separate work
This table compares each part of an Open WebUI installation with how it carries over to a new server. Read the middle column for the move method: file copy, reconfiguration, or re-indexing and a separate migration. Copying the data directory and keeping the same secret key covers local state, but external services need their own steps.
| Component | How it carries over | Migration note |
|---|---|---|
| Application database (webui.db) | File copy, with Open WebUI stopped | Holds users, chats and settings. Copy it with the data directory from a consistent, stopped state. |
| Uploads and knowledge files | File copy within the data directory | Without these files, attachments and knowledge base documents fail. If uploads already use object storage, only endpoints and credentials change. |
| Embedded ChromaDB vector data | File copy, then verify | Stored in the data directory. Confirm knowledge bases still answer queries on the new server, or re-index them if they do not. |
| Secret key | Reconfigure: set the same value on the new server | Must match the original so encrypted stored values and sessions remain readable. Confirm which values depend on it in your version. |
| Environment configuration | Reconfigure with the same keys and new host values | Recreate public URLs, ports and connection strings. Keep a copy of the source container or Compose file for reference. |
| Redis | Reconfigure, state is not carried over | Holds sessions and websocket state. Plan for users to sign in again if the Redis instance is replaced. |
| External PostgreSQL | Reconfigure the connection, or migrate the data separately | Moving the data directory does not move database contents. Dump and restore the database, then point Open WebUI at it. |
| External vector database | Re-index, or migrate separately | Vector stores are not reliably portable by file copy. Re-index knowledge bases after the move or follow Switching Open WebUI vector databases. |
| SSO settings | Reconfigure callback and redirect URLs | Identity provider redirect URIs must include the new address. Test sign-in on the new server before cutover. |
Documented paths for relocating the installation
In a Docker or Docker Compose deployment, the installation is the container configuration plus the persistent volume that holds application data. Relocating it means carrying both to the new host with the same settings before the first start there. The Compose file, the environment entries and the volume mapping are the three items to inspect on the old host.
- Persistent data volume: Identify the named volume or bind mount that maps to the container's data directory, and copy the whole directory, including the database file.
- Secret key: Carry the
WEBUI_SECRET_KEYvalue over unchanged, since it is tied to existing sessions and to protected stored values. Confirm this dependency in the install documentation for your version. - Database settings: Check
DATABASE_URL. If it points to a SQLite file inside the data volume, the database travels with the directory. - Compose file and image tag: Copy the Compose file and keep the same image tag for the move, so the new host starts with identical settings. Plan any upgrade as a separate step.
- External URL: Check whether the external URL setting is defined, because users, links and single sign-on callbacks depend on it.
After the first start, confirm the container log is clean, the volume contains the expected directories, and existing accounts can sign in. The Open WebUI features page lists the supported install methods.
On Kubernetes, the Helm release defines the configuration, a persistent volume claim holds the application data, and a Kubernetes Secret usually holds the secret key and other sensitive values. Moving the installation means reproducing the release values on the new cluster and making the migrated data visible to the pod. The exact chart keys depend on the chart version, so confirm them against the chart documentation for your version.
- Persistent volume claim: Identify the claim that holds application data and confirm the storage class on the new cluster can hold the same data.
- Release values and Secret: Export the Helm values and the Secret that contains the secret key, then recreate both on the new cluster with the same content.
- External services: If PostgreSQL, Redis or a vector database runs outside the release, point the new release at those services and move them on their own schedule.
- Chart and app versions: Pin the chart version and application version used on the old cluster for the first start on the new one.
- Ingress and TLS: Recreate the ingress host and the TLS Secret so the external URL matches what users and identity providers expect.
Scale the old release down before the new one serves traffic, so two instances never write to the same data. Then confirm the pod mounts the migrated volume, check the logs, and test sign-in with existing accounts.
With a pip install of open-webui, started with open-webui serve, the installation lives on the host as a Python environment, a data directory and a set of environment variables that the process reads at startup. Moving it means installing the same package version on the new host and recreating the service around the copied data. The data directory location and environment variable names depend on your setup, so confirm them in the install documentation for your version.
- Data directory: Copy the complete data directory configured for the installation, including the database file and uploaded files.
- Environment: Recreate the variables that set the secret key, the database connection and the data location, which are usually defined in a service unit or an environment file.
- Package version: Install the same Open WebUI version in a fresh virtual environment on the new host, and keep the dependencies pinned to match the old environment.
- Service definition: Recreate the service with the same user, working directory and restart behavior, and confirm the service user can read and write the copied data directory.
- Reverse proxy: Update the proxy on the new host so it forwards to the new process and serves the same external URL.
Start the service, watch the log for database and migration messages, and confirm that existing users can sign in and that uploaded files open. Stop the old process before the new one starts so the two never share the same data.
Sequence for inventory, pilot, parallel run and cutover
This sequence moves a working Open WebUI installation to a new server while keeping the data directory, the secret key and every external service connection intact. Each stage ends with a check that tells the team whether to continue, pause or roll back.
Inventory the current deployment and its services
Record the Open WebUI version, the install method (Docker, Docker Compose, Helm or pip), the data directory location, the database backend, the vector store, file storage, Redis if present, and every model server, search, speech or tool endpoint the instance calls. Capture the environment variables and the secret key in a secure location, along with the reverse proxy and certificate setup. Done when the team has a written inventory that a second engineer has reviewed and can rebuild the service from.
Confirm the target version and freeze changes
Install the same Open WebUI version on the new server so the move is not combined with an upgrade, and check the release notes for any change that affects the data directory or database. Stop accepting configuration changes on the old host for the migration window so the copy reflects a known state. Done when the new host runs the matching version against an empty data directory and the change freeze is announced to administrators.
Run a pilot restore on the new server
Stop the old instance, copy the whole data directory and the database to the new host, and start Open WebUI there with the same secret key and environment variables. Use a copy of the data rather than the only live copy so the old host remains untouched if the pilot fails. Done when login works, existing chats open, uploaded files download, and knowledge bases answer test queries against the vector store, which confirms the files and vectors moved together.
Verify the pilot against a checklist
Test the functions that depend on the copied data and the external connections: sign-in with existing accounts, API keys, model list and responses from each provider, RAG retrieval, file previews, and admin settings. Confirm that sessions behave as expected and that any Redis or shared storage in use is reachable from the new host. Done when every item on the checklist has a recorded result and any failures have an owner and a fix.
Run the parallel or read-only check period
Keep the new server reachable only to a small group of testers while the old host stays in service or is set to read-only, and compare results from both systems for the same prompts and knowledge base queries. Watch logs on the new server for errors and check that outbound connections reach the expected endpoints. Confirm the length of this period with your own change process, since no duration is set by this guide. Done when testers sign off and no unresolved differences remain.
Set the rollback point and cut over
Before changing DNS or the reverse proxy, take a final backup of the old host and record its state, the target configuration and the exact switch steps with the time they run. Then point the public name or proxy upstream at the new server and confirm the new address serves traffic. Done when the new host handles production logins and the rollback procedure has been written down, tested in principle, and assigned to a named engineer.
Monitor after cutover and keep the old host
Watch sign-in failures, error logs, model connection errors and user reports closely during the early period after cutover, and keep the old host powered and its data intact so rollback stays possible. Compare any issues against the inventory to find services that were missed. Done when the team has resolved post-cutover issues and the rollback point is no longer needed.
Decommission the old host after the retention window
After the retention window agreed by your organization ends, remove the old host and its copies of user data according to your retention and deletion policy, and revoke any credentials that only the old host used. Update the inventory and runbooks to name the new host. Done when the old system is deleted, its access is revoked, and the records show the date and the approver.
How the parts fit during the move
The move starts on the old host, where the whole data directory and the WEBUI_SECRET_KEY value must be captured together in one backup step. That backup is transferred to the new host and restored there, with the same secret key configured before the first start. Before any traffic is switched, check sign-in and stored chats against real users, then confirm connections to model servers and other external services. The reverse proxy cutover is the last hand-off, and a rollback path returns traffic to the old host if verification fails.
The move path from backup and restore on the new host to proxy cutover, with rollback to the old host.
Checks to run after the new server is live
Run these checks before you tell users the move is finished, and start with sign-in. Confirm that existing users can sign in with their current credentials and that their chats, settings and group memberships appear as they did on the old server. If sign-in fails for everyone, the secret key is the first suspect, because a different WEBUI_SECRET_KEY makes stored tokens and encrypted values unreadable. Next, sign a user out and back in, then open a second browser session. Sessions should behave as your identity setup defines. Without Redis, signing out does not revoke tokens, so a signed-out session stays valid until it expires, by default after 4 weeks. Treat that as expected single-replica behavior only if you have accepted it, and confirm the token lifetime your installation uses.
Next, test the content you moved. Open several uploaded files from older chats and from knowledge bases, and confirm each one opens and its text is readable. Then run a retrieval query against a knowledge base you know well and check that results come back and cite the right documents. If uploads open but retrieval returns nothing, the vector store was not carried over with the data directory, and the knowledge bases need re-indexing rather than further file copying. Confirm that each configured model connection responds from the admin settings, and that API keys still work for an existing user without being recreated. Check that admin settings, model definitions, users, groups and permissions are all present, since these live in the database and should match the source.
Finally, read the startup logs of every running instance and look for database migration errors, missing file paths, failed connections to Redis or the vector database, and repeated restarts. Keep the old server available and unchanged until these checks pass, and record the results so that a rollback decision is based on evidence. For a multi-replica deployment, repeat sign-in and session tests against each replica, because a problem can appear on only one node. Confirm the exact checks, their owners and the rollback window with whoever runs your identity and operations processes before cutover.
What drives the cost and duration of the move
This table lists the factors that change how much work a move of Open WebUI to a new server involves, and whether each one is a one-time task or something that keeps costing effort after cutover. Use it to see which items in your environment will expand the scope before you ask for a quote. The main takeaway is that the database storage type, external services and verification rounds usually matter more than the raw size of the data directory.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Data directory size | Copy time and transfer window grow with the uploads, knowledge files and cache kept under the data directory. Measure it before the move, since it sets the length of the downtime window. | Review uploads and knowledge with the owners and remove what is no longer needed before the copy. One-time. |
| SQLite on local SSD or NVMe versus network storage | A database file on network storage is a stability risk and may need relocation to local disk on the new server. Confirm the storage type on both hosts. One-time. | Keep the database on locally attached SSD or NVMe on the target. Do not place the file on network-mounted storage. |
| Number of external services to relocate | Each service that Open WebUI calls, such as a model server, search, speech, image or observability endpoint, needs new addresses, certificates and tests. Recurs if endpoints change again. | List every outbound connection and its owner before the move. Update configuration in one change window. |
| Redis and multiple replicas | Running several replicas needs Redis for sessions and shared state, plus shared file storage. Adding these during a move turns a file copy into a platform change. One-time for setup, recurring for operation. | Move a single-replica installation first. Plan Redis and shared storage as a separate project if you need replicas. |
| Vector store type and re-indexing | Embedded ChromaDB data may not carry over cleanly to an external vector database. Re-indexing knowledge bases takes time and needs model access. Confirm the chosen store before the cutover. | Keep the vector store unchanged during the move where possible. Plan re-indexing as a separate step with its own verification. |
| SSO and SCIM reconfiguration | Redirect URLs, OIDC or LDAP settings and SCIM provisioning tokens often reference the old host. Each identity provider needs its own change request and test sign-in. One-time, with recurring checks for provisioning. | Collect the identity provider settings and owners before cutover. Confirm redirect URLs with the identity team in advance. |
| Compliance evidence needs | Auditors or internal reviewers may ask for change records, configuration baselines, access reviews and proof of backup restore on the new host. The effort depends on what your assessor requests. Recurs at each assessment cycle. | Ask your assessor which artifacts they need, and capture them during the move rather than after. |
| Number of verification rounds | Each round of checks, such as login, chat history, file access, knowledge search and admin functions, adds time. Failed checks cause additional rounds. One-time, though the checklist is reused for later upgrades. | Agree the acceptance checks in writing before the move, and keep a rollback point until the final round passes. |
What usually goes wrong during a server move
Most failed Open WebUI moves come from treating the database file as the whole installation. The database, the data directory, the secret key, the state store and the vector store all have to arrive together, and each card below names one way that set breaks.
Missing or changed secret key
Open WebUI uses a secret key to sign tokens and protect values it stores. If the new server starts with a different key, sessions fail and encrypted fields may become unreadable. Copy the key exactly from the old WEBUI_SECRET_KEY setting, keep it in your secrets store, and confirm that a test login works before users are moved over.
Copying a live SQLite file
Copying webui.db while Open WebUI is running can capture a half-written database. The copy may open, yet hold inconsistent rows. Stop the container or service first, copy the file once it is idle, and check row counts for users and chats on the new server before you start it.
Network storage under SQLite
SQLite is acceptable for a single replica only when the database file sits on locally attached SSD or NVMe storage. If the new server mounts the data directory from network storage, lock behavior and latency can corrupt or stall writes. Confirm the disk type before the move and document it in the runbook.
Scaling Open WebUI docsUploads and knowledge files left behind
Uploaded documents and knowledge base files live in the data directory, not inside the database. A move that copies only webui.db leaves users with chats that point at missing files. Copy the whole data directory with its ownership and permissions intact, then open a few uploaded files and a knowledge base from the new host.
Tokens valid after an incomplete Redis setup
Without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. If you add Redis during the move but do not point every instance at it, old sessions can survive a sign-out on the new server. Confirm that a logout invalidates the session on each node before cutover.
Scaling Open WebUI docsEmbedded ChromaDB carried into multi-process setup
The default ChromaDB is embedded and crashes in multi-process setups, so it cannot simply move with a scaled deployment. If the new server runs several workers or replicas, plan an external vector database and re-index knowledge bases there rather than expecting the local vector files to carry over. Test retrieval against a known document after the move.
Scaling Open WebUI docsQuestions teams ask before moving Open WebUI
Does moving Open WebUI to a new server need outside help, and what does it cost?
A move does not strictly need a partner, but the work is fixed-scope and the cost follows from the written scope. Your organization pays for planning, the data copy and verification, the cutover window, and any changes to the target server such as a new reverse proxy or certificate. Each of these costs goes up with the number of users, the size of the data directory, the number of replicas and how many systems depend on the address. There is no standard price for this work, so ask for a written scoped quote that lists each item, what is one-time, and whether post-move support is included. Do not compare quotes unless each covers the same systems and checks.
How long does a move take, and what drives the duration?
Duration depends mainly on how much data must be copied, how long the team can keep the service offline, and how many dependencies must be repointed. The data directory is the largest variable, because it holds uploads, knowledge files and the vector store along with the database. Other drivers include whether the database is SQLite or PostgreSQL, whether Redis or shared storage is involved, and how many identity, model and tool connections need new addresses. Ask the provider for a timeline built from a written inventory of your installation, and confirm the agreed maintenance window before any date is set.
What must our team provide before a server move starts?
The team needs to provide access and a clear decision on the window. In practice that means access to the current host and the target host, the Docker or Kubernetes configuration, the environment file that holds the secret key, and the reverse proxy and DNS records. You also need a backup window in which no user writes data, a named business owner who signs off on the cutover and the rollback point, and a contact who can confirm which model, identity and tool connections must keep working. Put these items in the scope so that missing access does not stall the work midway.
Can an internal team move Open WebUI to a new server alone?
Yes, a team with container and database skills can usually do this without a partner, provided the team checks the full data set rather than only the database file. The main risk is a partial copy: a database file without the data directory loses uploaded files and vectors, and a new server with a different secret key can make stored secrets unreadable. Before starting, confirm that the same secret key will be used, that every file in the data directory is copied, and that a test login and a retrieval query succeed on the new host. If the installation runs several replicas, Redis and shared storage add steps that most teams should plan with help.
Does the Open WebUI License change affect a server move?
A server move does not change the license terms by itself, but the license still matters for the installation you are moving. Code from v0.6.6 onward is distributed under the Open WebUI License, which forbids altering or removing branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Keep the same version and branding settings during the move, and check the license terms if your user count has grown. Your legal or procurement team should confirm how the license applies to your deployment before cutover.
What should we check if users cannot sign in after cutover?
Start by confirming that the secret key on the new server matches the original, because a different key can break existing sessions and stored credentials. Next check the public address and the reverse proxy headers, since a mismatched URL or certificate blocks OIDC or LDAP redirects. Then confirm the identity provider has the new callback address registered. Without Redis, signing out does not revoke tokens, and they stay valid until they expire, by default after 4 weeks, so check old sessions as well. Review the container logs for authentication errors and test one account of each sign-in method before reopening access to users.
What should we check after the move is complete?
Run a short verification list on the new host before you retire the old one. Confirm that the version matches the old installation, that a sample user can sign in, that an existing chat loads with its history, that an uploaded file opens, and that a knowledge base returns results for a known question. Check that model connections respond, scheduled backups run on the new host, and logs go to the place your team monitors. Keep the old server in read-only standby until these checks pass and your business owner signs off.
How DeployOpen works on this
DeployOpen plans and carries out the move of an Open WebUI installation inside your own infrastructure, starting from an inventory of the data directory, secret key, database and file storage. The work is agreed as a fixed scope in writing, then delivered with verification steps and documentation your team can review and keep.
How we scope
- Inventory the current host, data directory, database type, file storage location and the secret key that must carry over.
- Confirm the target server, install method and whether the move stays on one replica or changes architecture.
- Agree in writing which post-move checks, user acceptance steps and rollback conditions are part of the engagement.
How we build
- Stop the source instance cleanly, copy the full data directory and reproduce the same secret key on the target before first start.
- Confirm that uploads, knowledge files and vector data are present and reachable, not just the metadata in webui.db.
- Test sign-in, chat history, file retrieval and admin settings on the new server before the old instance is retired.
How we hand over
- Provide a written runbook covering the exact copy steps, configuration values, service restarts and the verification results.
- Document the rollback path, including where the source data is kept and how long it remains available during cutover.
- Walk your operations team through the post-move checks so they can repeat them after future moves or upgrades.
How we support
- Offer ongoing support, upgrades and continuous testing for Open WebUI as a retainer after the move is complete.
- Review backup jobs and restore tests on the new server so recovery works from the same data layout.
- Support later changes such as a database or storage migration, scoped and quoted separately in writing.

