Moving Open WebUI uploads from local disk to S3

Moving Open WebUI uploads from local disk to S3 is a bounded storage change, but it touches the database, the secret key and any vector store, so plan it as a controlled cutover. This page explains what maps, what stays on disk and what drives the work.

On this page

Moving Open WebUI uploads to S3 on an existing installation

If your Open WebUI installation keeps uploads in its local data directory and now needs shared or object storage, usually because you are adding a second replica or a storage policy requires it, the file move itself is a contained job. The real risk sits in the database references that point to those files and in the credentials the instances use to reach the bucket, not in the copy. The Scaling Open WebUI guide requires shared file storage for multiple replicas so that uploads and knowledge stay reachable from every instance, which is why this change tends to arrive together with Redis and an external database.

Effort is driven by three things: how many uploads you hold, how many replicas will read them, and whether knowledge bases are in scope. Upload volume sets the copy window and the verification sample. Replica count determines how many running instances must be switched over and tested together. Knowledge bases add a separate question, because their indexed content may live in the vector store and not only in the files, so the move needs a decision about whether to re-index. Ask any partner to state which of these three they have assumed in the quote and to list each one as an explicit scope item.

Before you change any setting, confirm your current Open WebUI version, the storage configuration in use and the bucket provider you plan to use, since S3 compatibility and credential handling differ between object stores. Plan the cutover around a frozen copy: stop uploads, copy the data directory's file tree to the bucket, then verify object counts and sizes against the database records before you point the application at S3. Keep the local copy untouched until the rollback window closes.

What maps cleanly from local disk to S3 and what does not

This table sorts each piece of Open WebUI state by where it lives today and what changes when uploads move to S3 or another object store. Read the first column to find your component, then the migration notes to see whether it moves with the files or stays put. Confirm every storage location against the configuration documentation for your installed version before you plan the cutover.

ComponentWhere it lives todayWhat changes on S3Migration notes
Uploaded filesLocal data directory, under the uploads pathMoves to the bucket when file storage is set to S3Copy existing objects to the bucket before switching. Confirm the key prefix the installed version uses.
Database records referencing uploadswebui.db (SQLite) or the PostgreSQL databaseRecords stay in the database and keep their file identifiersRecords do not move to S3. Any identifier pointing to a local path must resolve to an object key after cutover.
Knowledge base filesLocal data directory alongside uploadsSource files move with uploads when storage is S3Confirm whether the version stores knowledge source files in the same location as chat uploads.
Vector store (default ChromaDB)Embedded ChromaDB files in the data directoryDoes not move to S3. Object storage holds no vector index.Default ChromaDB is not suitable for multi-process setups. Plan an external vector database separately.
Vector store (external)Outside Open WebUI, in the chosen vector databaseNo change from the storage switchRe-indexing is a separate task. Confirm the required reindex steps in the release notes.
Secret keyEnvironment variable or secret store, not the data directoryNo change. Object storage does not hold it.Keep the same key across the move, or stored tokens and encrypted values may stop working. Confirm the key handling in your version's documentation.
Redis stateRedis server, if deployed for multiple replicasNo change. Redis does not hold uploaded files.Redis holds sessions and websocket state, not files. Shared file storage is still needed for multiple replicas.
Caches and temporary filesLocal data directory or container temporary pathsTypically stays on local diskConfirm which caches the installed version writes locally before assuming they can be discarded.

How requests, files and state flow after the move

Requests start at users, pass through a reverse proxy to the Open WebUI replicas, and reach shared state in PostgreSQL and Redis. Uploads are written to the object store through the task role, while PostgreSQL keeps only the references and metadata. Check that every replica reads the same secret key, that Redis is reachable from all replicas, and that the vector store sits outside the object store, because the object store holds files, not the retrieval index.

Shared state and uploads flow to external stores, with the object store behind a task role.

Documented options for the storage change

Four sources of truth shape this change: the storage settings for your installed version, the shared file storage rules for multi-replica setups, the cloud identity model for credentials, and the copy method you choose for existing files. Work through them together, because the configuration decides what the copy must preserve and the copy decides whether the cutover can be verified.

Storage configuration for your version

Start with the file storage settings documented for the exact Open WebUI version you run, not the latest release. Confirm which storage provider keys exist, how the S3 bucket, region, endpoint and prefix are named, and whether the setting is read at startup or at runtime. Confirm whether a restart is needed before you plan the cutover window. Record the version in the change ticket so the settings can be reproduced later.

Open WebUI features

Shared file storage requirements

The scaling guide states that uploads and knowledge must stay reachable from every replica. If you run one instance today, S3 is the shared store you will need if you ever add replicas, so design the bucket for that future. Check whether any path under the data directory is still read directly by the application after the switch, such as cached or temporary files, and keep those paths on local disk on each node.

Scaling guide

Task roles and instance profiles

Grant the Open WebUI workload access to the bucket through a task role, pod identity or instance profile, so no static access key sits in the environment file or container spec. Limit the policy to the one bucket and prefix, with read, write, list and delete rights only where the application needs them. Test the role from the running container before cutover, since a role that works on a workstation may not be attached to the actual task.

Copy tool and verification

No documented importer for moving local files to S3 was supplied for this topic. Confirm in the release notes and configuration docs for your version whether Open WebUI migrates existing file records, or whether you must copy the files and check each reference yourself. Choose a copy tool your team can audit, compare object counts and checksums against the source directory, and keep the source intact until the checks pass.

The sequence from inventory to decommissioning local uploads

This sequence moves existing Open WebUI uploads from the local data directory to an S3 or S3-compatible bucket without losing files or breaking references. Each stage produces a named artifact, and the next stage starts only after its check passes. Local files are removed last, after a retention period the organization sets.

  1. Inventory upload paths, counts and sizes

    The platform owner lists every location under the data directory that holds uploaded files, including user uploads, knowledge documents and any other file-backed content. For each location, record the file count, total size and the database tables or records that point to those files. Record what stays on disk, such as the database file and vector store data, so it is excluded from the move. The artifact is an inventory sheet. The check is that database reference counts and file system counts agree within the explanation you can give for any gap.

  2. Build the bucket and role in staging

    Create a copy of the installation in a staging environment and provision the bucket, its access policy and an IAM task role or equivalent workload identity. Configure Open WebUI to use the bucket by following the storage settings for your release, and confirm their exact names in the official documentation before you set them. Avoid long-lived static access keys in configuration files. If you run several replicas, confirm that every replica can reach the bucket. The artifact is a working staging installation. The check is that a test upload and read succeed using only the role.

  3. Copy files and verify checksums

    Copy the files from the data directory to the bucket, preserving the object keys that the database references expect. Generate checksums on the source side and compare them with the stored objects, and compare object counts with the inventory from the first step. Open a sample of files through the staging interface to confirm they render and download. The artifact is a copy manifest listing each object, its size and its checksum. The check is that every manifest entry matches on count and checksum, with no unexplained differences, before you continue.

  4. Run a parallel period with dual checks

    Run the production installation with new uploads written to the bucket while the existing local files remain in place. A second copy of the copy job or a delta sync catches files added after the first copy. Each day, check that new uploads land in the bucket, that references from the database resolve to existing objects, and that the application logs show no storage errors. The artifact is a parallel-run log with the reference check results. The check is that the agreed observation period passes with no unresolved missing-object or permission errors.

  5. Cut over with a tested rollback path

    Schedule a cutover window with the people who own the service, and freeze new configuration changes during it. Run the final delta copy, confirm the manifest again, switch the installation to the bucket and restart it. Sample uploads, knowledge documents and file-backed chats to confirm they open. Keep the local files and the previous configuration available so you can switch back. The artifact is a signed cutover runbook and a rollback runbook. The check is that the rollback steps were rehearsed in staging and that post-cutover samples pass.

  6. Hold local files through the retention period

    Keep the local upload files on disk for the retention period your organization sets in its data retention policy. During this period, include the bucket in backups and confirm that a restore test can recover both the database and the objects. Monitor the bucket for access errors and cost changes. The artifact is a retention record that states the start date, end date and approver. The check is a successful restore test of a sample of objects, done before the retention period ends.

  7. Decommission local upload files

    When the retention period ends and the approver signs off, remove the local upload files from the data directory. Before deletion, take a final backup of the database and confirm that no references point to local paths. Keep a record of what was removed and when. The artifact is a decommissioning record with the final backup identifier and the approval. The check is that the reference scan finds no local paths and the final backup restores successfully.

Giving Open WebUI S3 access through task roles

On Amazon ECS, the Open WebUI task definition takes an IAM task role, and on Amazon EKS the pod gets its identity through pod identity or a service account mapped to an IAM role, depending on how the cluster is configured. The AWS SDK inside the container then requests temporary credentials from the platform, so no access key needs to appear in environment variables or image layers. Confirm which mechanism your cluster version supports before you design the rest of the setup.

  • Attach the role to the workload, not the host: Each Open WebUI replica should receive the same role through its task or pod definition, so every replica reads and writes the same bucket.
  • Scope the role to one bucket and prefix: Grant only the object actions and bucket listing that the upload path needs, limited to the prefix Open WebUI writes to. Do not reuse a role that also reaches backups or other applications.
  • Keep static keys out of task definitions: If a key was used during a test, remove it from the task definition and the secrets store once the role works.
  • Check rotation behavior with a test: The platform refreshes temporary credentials before they expire. Confirm with your Open WebUI version that its S3 client picks up refreshed credentials without a container restart, by running an upload during and after a forced credential refresh.
  • Confirm the policy boundary: Verify the role cannot reach other buckets by attempting a read from a neighboring bucket from inside the container.

Before go-live, confirm the exact setup steps with the AWS documentation for your container platform and the Open WebUI storage settings in its environment variable reference.

What drives the effort and cost of the move

This table lists the factors that change how much work the move to object storage takes and what a written quote should itemize. Use it to check whether a proposal covers each driver, because the size of your upload store and your replica count will shape most of the cost. Figures for effort, duration and fees belong in your written scope, not in this page.

DriverWhy it mattersWhat to ask for in a quote
Upload volume and total sizeThe copy job's runtime, bandwidth use and verification effort grow with the number and size of files on disk. Many small files cost more to list and verify than fewer large ones.Current file count and total size on disk, the copy method and estimated transfer window, and whether the quote includes a dry run on a copy of the data.
Number of replicas and workersEvery replica and worker must read and write the same store after cutover. Each one needs a configuration change and a restart check, and a missed instance can keep writing to local disk.The list of replicas and workers, the rollout order, and whether configuration checks on each instance are included in the fixed scope.
Knowledge bases and vector data in scopeUploads that feed knowledge bases may tie to vector index records. Moving files without checking those links can leave retrieval broken, and rebuilding indexes is a separate piece of work.A clear statement on whether knowledge base files move, whether indexes are rebuilt or left alone, and who verifies retrieval after cutover.
Cloud or self-hosted object storeA managed cloud bucket and a self-hosted S3-compatible store differ in setup, endpoint configuration, durability settings and who operates the platform after handover.Which store is targeted, who provisions and patches it, and whether the quote covers bucket policy, encryption and lifecycle settings or only the Open WebUI side.
Credential modelLong-lived access keys in configuration files add a rotation and exposure burden. Task roles or workload identity need policy design and a test of what each instance can reach.The identity method planned for each runtime, the least-privilege policy to be written, and whether the quote includes a test that denied actions fail.
Parallel run and rollback windowRunning reads from both locations or keeping local files for a period adds storage cost and a reconciliation step. A rollback path has to be tested before cutover, not assumed.Whether a parallel run is included, how long local copies are kept, the rollback steps, and who decides when the rollback window closes.
Compliance evidenceAssessors often ask who accessed stored files, how long logs are kept and how deletion is enforced. These controls must be configured and shown, not described from memory.Access log settings on the bucket, retention and deletion rules, the evidence package delivered, and whether an independent auditor's requirements are reviewed. DeployOpen prepares evidence but does not issue audit reports.
Support after cutoverRecurring work includes monitoring the store, reviewing permissions after upgrades and handling incidents. This cost recurs and is often missed in first quotes.Whether support is a separate retainer, the response expectations written into scope, and who owns the bucket after the project ends.

What usually goes wrong and how to prevent it

Most failed storage moves come from a mismatch between the database and the files it points to, or from secrets that were handled casually during the change. Each card below names one failure, why it hurts an S3 move specifically, and the step that prevents it.

Database rows pointing at missing paths

Open WebUI stores file references in its database, so after the switch those rows still name paths on the old local data directory. If the old files were not copied to the bucket under the same keys, users see uploads that fail to open. Before cutover, sample file records, confirm each object key exists in the bucket, and count mismatches against the database.

Scaling docs

Secret key differing between replicas

Open WebUI signs and encrypts data with a secret key, and every replica and the old install must use the same value. A replica started with a different key will fail to read data encrypted by its peers, and sessions can break unpredictably. Keep the key in your secrets store, set the same value on every container before the first start, and verify it against the old install.

Vector data stranded on local disk

Vector indexes and cached embeddings may still live under the local data directory after uploads move. Replicas that cannot reach that disk will return incomplete retrieval results, and the default ChromaDB is not safe with several processes. Inventory what remains on disk, confirm which vector store each replica uses, and plan the vector migration as a separate, tested step.

Scaling docs

Credentials embedded in images or config

Access keys written into environment files, compose files or container images end up in version control, image layers and backups. For S3, prefer the task role or workload identity your platform provides, so no long-lived key lives in Open WebUI configuration. Scan images and repositories for key patterns after the change, and rotate any key that was ever stored in a file.

Rollback restoring rows without objects

If you roll back the database to its pre-move state but leave the bucket as it is, or the reverse, file records and objects fall out of step. Take a database snapshot and a bucket inventory at the same point, and record both in the change ticket. Test one restore of each in a non-production copy before the cutover window.

Public bucket exposure

A bucket created quickly for testing may allow public reads, which would expose every uploaded document to anyone with the URL. Keep block public access enabled, grant access only to the Open WebUI task role and your backup role, and use private object access in the application rather than public links. Check the bucket policy and access logs once the move is complete.

Questions buyers ask before moving uploads to S3

How much effort does moving Open WebUI uploads to S3 take?

The effort depends mostly on how much data sits in the data directory, how many files are referenced by knowledge bases, and how many replicas or workers read from that storage. A single-node installation with a small upload folder is a contained change. Effort rises when you must copy a large file tree, verify every file, and coordinate the cutover across several running instances. No duration is published here, so ask any partner for a written estimate based on a count and size of your uploads, your storage platform, and your replica layout.

Can our own team move Open WebUI uploads to S3 without outside help?

Often yes, if one or two engineers can read the storage configuration, run a copy and checksum process, and test a restore. The work is mostly careful sequencing: copy, verify, switch the storage setting, then check that uploads and knowledge files open from the new location. Teams without object storage experience, or those with strict change control, often find the access setup and verification the hardest part. DeployOpen plans and delivers this kind of work as a fixed-scope engagement when the written scope is agreed first.

What do we need to provide before the migration starts?

Plan to provide the following before any copy begins:

  • Read access to the Open WebUI host, its environment configuration and the data directory.
  • A staging copy of the installation with a recent data snapshot.
  • A bucket owner or storage team contact who can create buckets, encryption settings and lifecycle rules.
  • An identity owner who can grant the running workload a role with access to the bucket.
  • A change window approved by the people who run the service.

Confirm these owners early, because bucket policy and role approval often take longer than the copy itself.

Does moving uploads to S3 require downtime?

It can be done with a short write freeze, or with a window where you copy files while the service keeps running and then sync the remaining changes before switching. The safer choice depends on whether users upload files during the copy and whether your storage tool can sync changes reliably. Confirm the expected downtime in a staging rehearsal rather than assuming it. Plan a rollback path that keeps the local files intact until the new location has been verified.

Does the Open WebUI License or an Enterprise license change this work?

The move itself is storage configuration and data handling, so the license does not change the technical steps. Note, however, that the Open WebUI License applies branding protection to deployments above 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Check your license position before you change the deployment, and confirm current terms with Open WebUI's license documentation and enterprise sales if your user count is near that threshold.

What happens to knowledge bases and vectors during the move?

Knowledge bases depend on uploaded files, but the vector store is a separate concern. Confirm that every file a knowledge base references is copied and reachable from the new storage path, and that the vector database is external if you run several replicas, since the default ChromaDB is not suitable for multi-process setups. Do not assume vectors move with the files. Test a retrieval query against a known document after the switch, and keep your retrieval checks in the staging rehearsal.

What should we confirm before buying outside help for this move?

Ask the partner for a written scope that names the object store, the credential method (for example, task roles rather than static keys), the verification steps, the rollback plan, and what remains on local disk. Confirm how they test restores, whether they run a staging rehearsal, and who signs off the cutover. Ask for the quote to break down the components they are paying for. Also confirm your storage owner, your identity owner, and your change window before work begins.

How DeployOpen scopes and delivers the move

DeployOpen treats the move of Open WebUI uploads from local disk to S3 as a bounded piece of work inside your own infrastructure. We agree the scope in writing first, then build and verify the change on a copy of your installation before anything touches production.

How we scope

  • We confirm the current data directory layout, upload volume and the storage that must stay on local disk.
  • We agree the target bucket, region, encryption settings and the task role or workload identity that will reach it.
  • Engagements are fixed-scope, so the written scope lists what is moved, what is verified and what is out of scope.

How we build

  • We configure the storage backend in a staging copy of your installation and move a representative set of uploads.
  • We check that files stay reachable from the application after the switch, including any replicas that share storage.
  • We confirm that credentials come from task roles rather than static keys stored in configuration or environment files.

How we hand over

  • You receive the configuration changes, a record of the migration steps and the verification results.
  • The handover documents the rollback path, including how to return to local disk if the cutover fails.
  • We walk your platform team through the bucket policy, lifecycle settings and what remains on the local data directory.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the move is complete.
  • Open WebUI upgrades can change storage behavior, so we can retest the upload path against each new release you plan to adopt.
  • Support scope and response terms are agreed in writing before any retainer work begins.

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.