Postgres14 change the default data directory

1. What is the issue? Please be detailed.

We have upgraded to the latest ODK Central with the Postgres infrastructure change to Postgres 14. We would like to use a different data directory for Postgres which will be backed up rather than the default /var/lib/.... directory.

2. What steps can we take to reproduce this issue?

Is there a way to have a different postgres data directory than the default?
Where is this set up?

3. What have you tried to fix the issue?

4. Upload any forms or screenshots you can share publicly below.

So you want to use the Postgres 14 container, but connect some backup tool that can connect through Docker? If you are going to change those defaults, why not a standalone Postgres DB that's setup the way you like?

We managed to overcome the Postgres issue.

We are using the docker Postgres that comes with central, but we are using a external volume to store the data Postgres data.


1 Like