https://github.com/abdelfattahradwan/pg_dump-docker
Minimal Docker image containing only the PostgreSQL pg_dump utility without the full PostgreSQL installation.
https://github.com/abdelfattahradwan/pg_dump-docker
backup backup-utility docker postgres postgresql
Last synced: 3 months ago
JSON representation
Minimal Docker image containing only the PostgreSQL pg_dump utility without the full PostgreSQL installation.
- Host: GitHub
- URL: https://github.com/abdelfattahradwan/pg_dump-docker
- Owner: abdelfattahradwan
- Created: 2025-03-31T02:30:41.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-10T09:57:42.000Z (about 1 year ago)
- Last Synced: 2026-02-07T20:34:45.833Z (5 months ago)
- Topics: backup, backup-utility, docker, postgres, postgresql
- Language: Dockerfile
- Homepage: https://www.postgresql.org/docs/current/app-pgdump.html
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pg_dump-minimal
Minimal Docker image containing only the PostgreSQL pg_dump utility without the full PostgreSQL installation.
## Usage
```bash
# 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
```
## Versions
Image tags follow PostgreSQL versions:
- 17: PostgreSQL 17
## Build
```bash
docker build -t pg_dump-minimal .
```
## Licence
MIT