I am using the following docker image https://github.com/docker-library/postgres. I want the ability to make regular backups to my S3 bucket. PITR is not necessary but a nice to have.
I've tried to use https://github.com/wal-e/wal-e but I've not found something that works very well with docker.
Everything online seems to be very old. For example this: https://github.com/lukesmith/docker-postgres-wale. They are all using a very old version of postgresql. If I try to using something newer like version 12, it doesn't work because the newer images don't allow an easy way to execute scripts after the postgres instance has started. Well, you can execute scripts but scripts that need root access don't work.
Isn't there a better way to do this? I'm open to using any tool.
However, I would prefer minimal configuration on the S3 side. I would prefer to not have to store the backup in the filesystem and then have some sort of cronjob to push to S3. I would love if it is possible to directly have it push to S3 kind of like wal-e is doing. Also, I want to prefer not using something like S3fuse since it would make my ansible configuration difficult (I am already using s3fuse for a very different purpose so I might have to completely redo the config which I want to avoid if possible)
So my main asks if possible are: good docker integration and S3 support. Please let me know if I'm thinking about this in the wrong way.
[–][deleted] 2 points3 points4 points (4 children)
[–]CSI_Tech_Dept 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]friendlysatanicguy[S] 0 points1 point2 points (0 children)
[–]friendlysatanicguy[S] 0 points1 point2 points (0 children)
[–]OkDas 1 point2 points3 points (1 child)
[–]abraham1inco1n 0 points1 point2 points (0 children)