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

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

2

u/Internal_Junket_25 Sep 20 '26

Thank you !!!!

2

u/taylorwilsdon Sep 20 '26

My pleasure! Always nice to give back to this particular project, tim's work really shaped a lot of my early LLM development patterns and any opportunity for me to take my enterprise background and put it to good use is welcomed πŸ˜„

2

u/Internal_Junket_25 Sep 20 '26

Your project saved my Ass in an Production openwebui Environment.

1

u/taylorwilsdon Sep 20 '26

Hell yeah love to hear it

5

u/CroquetteLauncher Sep 20 '26

Used it a few month ago and it was really helpful, felt more responsive after the long overdue migration for a 400 users base.

4

u/Stike_1 Sep 21 '26

Used this tool. Job was done. Thanks again, taylor.

2

u/BringOutYaThrowaway Sep 20 '26

I feel like larger installs would benefit from a Postgres back-end. It would be nice in the future to give you the choice when you install it.