eeshugerman / postgres-backup-s3

A handy Docker container to periodically backup PostgreSQL to S3
MIT License
485 stars 167 forks source link

Version mismatch error #2

Closed JoaoPedroAssis closed 3 years ago

JoaoPedroAssis commented 3 years ago

Hi there!

I'm triying to use you docker image to backup my postgres data, which sits on a container in a rails app. After building the images, the backup script doesn't work due to a version mismatch between the server and image versions of pg_dump

The error issued in the console is as follows:

pg_dump: server version: 12.1 (Debian 12.1-1.pgdg100+1); pg_dump version: 11.7
pg_dump: aborting because of server version mismatch

The problem is that we cannot change the version of our server at least until the weekend, since the application can't stop running. How can I change the image's postgres version to 12.1 so that we could actually use it? Instructions would be highly appreciated!

Thanks 🤙🏾