feat: How to import webui.db and chats after export? #4448

Closed
opened 2025-11-11 15:54:24 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @metaligh on GitHub (Mar 16, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

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

Originally created by @metaligh on GitHub (Mar 16, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### 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_
Author
Owner

@Classic298 commented on GitHub (Mar 16, 2025):

Replace the webui.db of your new instance with the exported backup (old webui.db).

Done

  1. stop open webui
  2. replace the database
  3. start it up again

That should do it.

@Classic298 commented on GitHub (Mar 16, 2025): Replace the webui.db of your new instance with the exported backup (old webui.db). Done 1) stop open webui 2) replace the database 3) start it up again That should do it.
Author
Owner

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

@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.
Author
Owner

@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

@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
Author
Owner

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

@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.
Author
Owner

@Classic298 commented on GitHub (Mar 16, 2025):

As I said, you can import chats from the settings too. Simple click

@Classic298 commented on GitHub (Mar 16, 2025): As I said, you can import chats from the settings too. Simple click
Author
Owner

@metaligh commented on GitHub (Mar 16, 2025):

Got it. Great thanks for the help.

@metaligh commented on GitHub (Mar 16, 2025): Got it. Great thanks for the help.
Author
Owner

@Classic298 commented on GitHub (Mar 16, 2025):

If your issue is solved, please close it :) thx

@Classic298 commented on GitHub (Mar 16, 2025): If your issue is solved, please close it :) thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4448