Moving Open WebUI to a new server

Relocating Open WebUI means moving the whole data directory with the same secret key, because copying webui.db alone loses uploads, knowledge files and vector data. This page sets out the sequence, the checks after the move and what drives the effort.

On this page

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.

ComponentHow it carries overMigration note
Application database (webui.db)File copy, with Open WebUI stoppedHolds users, chats and settings. Copy it with the data directory from a consistent, stopped state.
Uploads and knowledge filesFile copy within the data directoryWithout these files, attachments and knowledge base documents fail. If uploads already use object storage, only endpoints and credentials change.
Embedded ChromaDB vector dataFile copy, then verifyStored in the data directory. Confirm knowledge bases still answer queries on the new server, or re-index them if they do not.
Secret keyReconfigure: set the same value on the new serverMust match the original so encrypted stored values and sessions remain readable. Confirm which values depend on it in your version.
Environment configurationReconfigure with the same keys and new host valuesRecreate public URLs, ports and connection strings. Keep a copy of the source container or Compose file for reference.
RedisReconfigure, state is not carried overHolds sessions and websocket state. Plan for users to sign in again if the Redis instance is replaced.
External PostgreSQLReconfigure the connection, or migrate the data separatelyMoving the data directory does not move database contents. Dump and restore the database, then point Open WebUI at it.
External vector databaseRe-index, or migrate separatelyVector stores are not reliably portable by file copy. Re-index knowledge bases after the move or follow Switching Open WebUI vector databases.
SSO settingsReconfigure callback and redirect URLsIdentity 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_KEY value 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.

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

DriverWhy it changes effortHow to keep it down
Data directory sizeCopy 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 storageA 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 relocateEach 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 replicasRunning 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-indexingEmbedded 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 reconfigurationRedirect 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 needsAuditors 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 roundsEach 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.

Open WebUI features

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 docs

Uploads 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 docs

Embedded 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 docs

Questions 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.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.