Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 2.58 KB

README.md

File metadata and controls

29 lines (23 loc) · 2.58 KB

BMW12 simple postgresql backup

Docker Build Image Version Image Size Docker Pulls

This Program creates Postgresql dumps and then uploads them to a configured s3 bucket. These Backups will be deleted again after 10 days. It can be used to backup a Database from a home server. Where a full WAL backuping System would be too complicated. The Program takes all the configuration from environment variables.

Configuration

Env Name Required Default Description
KEY_ID ☑️ The Access Key Id to authenticate with
APPLICATION_KEY ☑️ The Access Key Secret to authenticate with
S3_REGION ☑️ The Region. sample: us-west-002
S3_ENDPOINT ☑️ The S3 Endpoint. sample: s3.us-west-002.backblazeb2.com
BUCKET_NAME ☑️ The Bucket where the backups are saved
PG_HOST ☑️ The Database Host
PG_PORT 🔲 5432 The Database Port
PG_USER ☑️ The User use for the PgDumps
PGPASSWORD ☑️ The Password of the database User
PG_DATABASES ☑️ All Databases that should be Backuped. The Databases are separated through a Comma. sample: db1,db2

Example

An example of a Kubernetes Cronjob configuration can be found under ./k8s-example.

Versioning

The docker version is in the format of "vX.Y.Z". All Tags can be found on DockerHub.