Open WebUI backup and restore
Take a cold backup of the default `open-webui` volume mounted at `/app/backend/data`; separately configured external dependencies are outside that volume.
Last updated
On this page (5)
Open WebUI ยท Backup and restore
Before you start
- Single-container default Docker deployment.
- Docker volume access, a maintenance window, and a pinned recovery image.
- Sufficient disk space and a fresh destination volume.
Procedure
- Confirm the volume mapping with
docker inspect open-webui; pause the app container and wait for it to have no active writers by stopping it cleanly before archiving. - Mount the source volume read-only in a temporary utility container and archive its entire tree (for example
tar -C /data -czf /backup/open-webui.tgz .with/datamapped to the source and/backupa private output mount). Save environment and secret references separately. - Extract into a new empty volume with permissions preserved, then attach it at
/app/backend/dataon a test container using the same image. Point model providers at isolated or controlled endpoints; any external database/vector/object store needs its own recovery copy.
Verify the result
- Verify test login, chat history and an uploaded knowledge file.
- Confirm the test container mounts the restored volume rather than an empty or production volume.
