mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
feat: How to import webui.db and chats after export? #4448
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @metaligh on GitHub (Mar 16, 2025).
Check Existing Issues
Problem Description
In the web interface there is an option to export webui.db and export all chats, but how do I import them if there are no such options in the dashboard?
Usually if there is export there is also import, what is the point of importing if there is no export? I exported the chats to json and now I can't import them after reinstalling open-webui. :(
Desired Solution you'd like
It would be nice to add json import of chats and database in the same menu.
Alternatives Considered
No response
Additional Context
No response
@Classic298 commented on GitHub (Mar 16, 2025):
Replace the webui.db of your new instance with the exported backup (old webui.db).
Done
That should do it.
@metaligh commented on GitHub (Mar 16, 2025):
I exported only chats in .json format. But there is no option to import it back in the menu. Also, the system is installed in Docker and it is not convenient to copy the file inside it, if I had a db file. It would be convenient to have such an option in the web, if there is a user-friendly export, then there should be exactly such an import.
@Classic298 commented on GitHub (Mar 16, 2025):
To import the file just go to settings > chats and click on import
or drag and drop the json into your sidebar where your chats are located.
and copying a database file into a docker container is very simple, just one command
@metaligh commented on GitHub (Mar 16, 2025):
Thanks. Dragging the json file helped and the chats were pulled up, but it is not an obvious thing for the user. Just as it is not obvious how to copy the db file. The user who installed the panel, as a rule, does not delve into how it works and is just looking for a quick and easy solution. Click - export, click - import, and not spend a lot of time on something that is obvious.
@Classic298 commented on GitHub (Mar 16, 2025):
As I said, you can import chats from the settings too. Simple click
@metaligh commented on GitHub (Mar 16, 2025):
Got it. Great thanks for the help.
@Classic298 commented on GitHub (Mar 16, 2025):
If your issue is solved, please close it :) thx