# How to Install/Migrate Nextcloud with PostgreSQL

**URL:** https://forum.yunohost.org/t/how-to-install-migrate-nextcloud-with-postgresql/41424
**Category:** Support apps
**Tags:** postgresql, database, nextcloud, english
**Created:** [January 30, 2026, 11:50am UTC](https://forum.yunohost.org/t/how-to-install-migrate-nextcloud-with-postgresql/41424 "2026-01-30T11:50:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tommi](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tommi/32/4537_2.png) [@tommi](https://forum.yunohost.org/u/tommi)
#### Post date: [January 30, 2026, 11:50am UTC](https://forum.yunohost.org/t/how-to-install-migrate-nextcloud-with-postgresql/41424/1 "2026-01-30T11:50:28Z")

</div>

**What app is this about, and its version** : Nextcloud v32.0.5~ynh1  
**What YunoHost version are you running** : 12.1.39  
**What type of hardware are you using** : VPS bought online

### Describe your issue

I would like to install Nextcloud but using PostgreSQL as the database. How can I do it?

If I already have an installation that is using the default database in the Nextcloud package, how can I migrate to PostgreSQL?

I read [the related issue](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/107), I saw [the original PR](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/597) and [the rebooted PR](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/818), but I don’t really know what to do with them.

### Share relevant logs or error messages

N/A

I would be happy to contribute to the official documentation once someone provides some instructions!

---

<div class="post-metadata">

### Author: ![Mamie](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mamie/32/1245_2.png) [@Mamie](https://forum.yunohost.org/u/Mamie)
#### Post date: [January 30, 2026, 12:51pm UTC](https://forum.yunohost.org/t/how-to-install-migrate-nextcloud-with-postgresql/41424/2 "2026-01-30T12:51:56Z")

</div>

From what I understood of the code, you can “just” upgrade to the git tree [GitHub - YunoHost-Apps/nextcloud\_ynh at postgresql\_reboot](https://github.com/YunoHost-Apps/nextcloud_ynh/tree/postgresql_reboot) and the migration will run automatically from MySQL to PostgreSQL.

BUT !!!

I have not tested this, I am waiting for this feature, but do not want to try to test this on my prod 😱

---

<div class="post-metadata">

### Author: ![tommi](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tommi/32/4537_2.png) [@tommi](https://forum.yunohost.org/u/tommi)
#### Post date: [February 8, 2026, 9:58am UTC](https://forum.yunohost.org/t/how-to-install-migrate-nextcloud-with-postgresql/41424/3 "2026-02-08T09:58:36Z")

</div>

Thank you @Mamie! It worked for a new installation. Did anyone here try to migrate?

---

<div class="post-metadata">

### Author: ![KodeIn](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kodein/32/8470_2.png) [@KodeIn](https://forum.yunohost.org/u/KodeIn)
#### Post date: [February 14, 2026, 10:37am UTC](https://forum.yunohost.org/t/how-to-install-migrate-nextcloud-with-postgresql/41424/4 "2026-02-14T10:37:30Z")

</div>

My instance was in a kinda broken state after a failed upgrade and troublesome restoration.

So I tried to upgrade using the postgres\_reboot branch. My instance is fixed and feel snappier than with mariaDB.

A big win IMHO.

I’ll keep the pre upgrade backup just in case.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [March 1, 2026, 10:37am UTC](https://forum.yunohost.org/t/how-to-install-migrate-nextcloud-with-postgresql/41424/5 "2026-03-01T10:37:57Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
