Backup postgres databases to S3 bucket
2.4K
This image contains a simple bash script to dump all database of defined postgres server then upload them to S3 bucket. This image is built specific for RDS postgres instances to overcome some RDS restrictions:
The bash script will iterate each line in file PGPASSDFILE, get a list of databases then dump each of them using pg_dump.
The script then compress the dump files, finally upload it to S3 bucket.
The user for each database must has the privileges to access all databases
grant usage on schema public to <user>;
grant select on all tables in schema public to <user>;
docker pull nhamlh/postgres-s3-backup
Content type
Image
Digest
Size
59.2 MB
Last updated
about 7 years ago
docker pull nhamlh/postgres-s3-backup