Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 582 Bytes

File metadata and controls

22 lines (15 loc) · 582 Bytes

Postgres Cron Backup

This container performs automatic backups of a PostgreSQL database based on a cron schedule.

Environment Variables

  • POSTGRES_HOST: The hostname of your PostgreSQL server
  • POSTGRES_DB: The name of the database to back up
  • POSTGRES_USER: The database user
  • POSTGRES_PASSWORD: The user's password
  • CRON_SCHEDULE: Cron schedule (e.g. 0 3 * * *)
  • MAX_BACKUPS: Max number of backups to keep (default: 7)

Volume

  • /backups: Mount this volume to store the generated .sql.gz files

Usage

docker-compose up -d --build