Sign inSign up

dannilosn/postgres-cron-backup

By dannilosn

•Updated over 1 year ago

Image
0

113

dannilosn/postgres-cron-backup repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:c22de45bd…

Size

6.9 MB

Last updated

over 1 year ago

docker pull dannilosn/postgres-cron-backup