Minimal PostgreSQL backup container for Docker environments. https://gitlab.com/pilasguru/autopgsqlbackup
  • Shell 79.6%
  • Dockerfile 20.4%
Find a file
2026-02-21 17:52:50 -03:00
.env-example impr README 2026-02-21 17:28:58 -03:00
.gitlab-ci.yml impr README 2026-02-21 17:28:58 -03:00
backup-postgres.sh supercronic 2026-02-21 17:16:31 -03:00
Dockerfile FROM postgres:18-alpine 2 2026-02-21 17:52:50 -03:00
entrypoint.sh supercronic 2026-02-21 17:16:31 -03:00
LICENSE README + LICENSE = public 2026-02-17 13:47:36 -03:00
README.md impr README 2026-02-21 17:28:58 -03:00

autopgsqlbackup

License Docker Image

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.

http://www.wtfpl.net/

WTFPL badge