Public | Automated Build

Last pushed: 2 hours ago
Short Description
Scheduled backup of postgres database to s3.
Full Description

Backup postgres database to s3

Required environment variables

  • PGDATABASE
  • PGHOST
  • PGPASSWORD
  • PGUSER
  • S3_PATH (s3://<bucket>/<path to file>)

You also must specify AWS credentials if not using ec2 roles.

Cron config

By default image backups database every day at 00:00.
You can change this behaviour by specifying CRON_CONFIG env.

Image commands

backup - backups database

restore - restores database

Docker Pull Command
Owner
h3xby
Source Repository