Skip to content

lidercommerce/postgres-cron-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 77.6%
  • Dockerfile 22.4%