A lightweight Docker image containing only the pg_dump utility
641
Minimal Docker image containing only the PostgreSQL pg_dump utility without the full PostgreSQL installation.
# Basic backup
docker run --rm abdelfattahradwan/pg_dump:17 -h host -U username -d dbname > backup.sql
# With password
docker run --rm -e PGPASSWORD=secret abdelfattahradwan/pg_dump:17 -h host -U username -d dbname > backup.sql
# Custom format (compressed)
docker run --rm -e PGPASSWORD=secret abdelfattahradwan/pg_dump:17 -h host -U username -d dbname -Fc > backup.dump
Image tags follow PostgreSQL versions:
docker build -t pg_dump-minimal .
MIT
Content type
Image
Digest
sha256:c8be33b8a…
Size
8 MB
Last updated
over 1 year ago
docker pull abdelfattahradwan/pg_dump