Minimal PostgreSQL backup container for Docker environments.
https://gitlab.com/pilasguru/autopgsqlbackup
- Shell 79.6%
- Dockerfile 20.4%
| .env-example | ||
| .gitlab-ci.yml | ||
| backup-postgres.sh | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| README.md | ||
autopgsqlbackup
Minimal PostgreSQL backup container for Docker environments.
Provides automated, versioned PostgreSQL backups using a simple environment-based configuration.
Image
registry.gitlab.com/pilasguru/autopgsqlbackup
Quick Start
Docker
docker run --rm \
-e POSTGRES_HOST=db
-e POSTGRES_PORT=5432
-e POSTGRES_USER=postgres
-e PGPASSWORD=secret
-e POSTGRES_DB=all
-e BACKUP_DIR=/backups
-e CRON_SCHEDULE="0 2 * * *"
-v $(pwd)/backups:/backups \
registry.gitlab.com/pilasguru/autopgsqlbackup:latest
Docker Compose
services:
pgbackup:
image: registry.gitlab.com/pilasguru/autopgsqlbackup
env_file:
- .env # from .env-example
environment:
- SCHEDULE=${CRON_SCHEDULE}
volumes:
- ./backups:/backups
License
Licensed under the WTFPL v2.
