Empty dumps #106
-
Hi. This might be a missconfiguration, probably something I did wrong, but I don't really know what else to try and the logs from pg_backup suggest that everything is fine while the dumps are empty. Any help would be appreaciated. The dumps:
The pg_dumper says:
The database actually has data, it is supporting a website that is in use. Here's the docker-compose:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Could you try removing the environment variable If so, please refer to pg_dump man page to figure out what could not work with your paramameters. Also as a reference the script will run pg_dump -d "${POSTGRES_DB}" -f "${OUTPUT_FILE}" ${POSTGRES_EXTRA_OPTS} So you can try on your own computer first... |
Beta Was this translation helpful? Give feedback.
-
Thanks for that! I found that I had a really stupid mistake. One environment variable in the prod settings was empty and that made the application use a random default database, rather than the one I was getting dumps from. Im glad I caught it. The dumps are working perfectly now! Thanks for the time and sorry. |
Beta Was this translation helpful? Give feedback.
Could you try removing the environment variable
POSTGRES_EXTRA_OPTS
.If so, please refer to pg_dump man page to figure out what could not work with your paramameters.
Also as a reference the script will run
pg_dump
with the following parameters:So you can try on your own computer first...