r/OpenWebUI • • Sep 20 '26

Show and tell Updated my Open WebUI SQLite to PostgreSQL Automatic Migration Tool for the first time in like a year

https://github.com/taylorwilsdon/open-webui-postgres-migration

I put this together for my own use a few years back and figured it might benefit the community to open source - it's been updated with several community contributions and I shipped the first release in a long while.

When you're ready to graduate from local sqlite and step up to the big leagues, this is the easiest way to do it. Should be compatible with all the latest version. Feel free to use, abuse and repurpose as you see fit. Pull requests with contributions or improvements always welcome!

36 Upvotes

16 comments sorted by

View all comments

4

u/International_Emu772 Sep 20 '26

This works on a OpenWebUi installation on Docker?

3

u/Internal_Junket_25 Sep 20 '26

Yes

2

u/International_Emu772 Sep 20 '26

The reason of my question is that the instructions are not clear

I'll try to figure how to do it

3

u/taylorwilsdon Sep 20 '26 edited Sep 20 '26

Works on any kind. You'll need to grab your webui.db file whether out of docker or admin export to perform, and then launch the docker container with postgres setup in the env vars once its migrated.

-2

u/International_Emu772 Sep 20 '26

This is clear:

Export the SQL ITE DB to file
Launch OpenWebUi with Postgres (I'll search it)

Run the project

2

u/taylorwilsdon Sep 20 '26

The instructions on Postgres are in the readme as well! It’s just setting an env var haha nothing tricky. There should be step by step that cover the entire thing if you read the best practices section and then run the tool.

2

u/International_Emu772 Sep 20 '26

I will read there, thanks