Skip to content

SirCremefresh/bmw12-simple-postgresql-backup

Repository files navigation

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.

About

A simple Postgresql backup tool that uploads to an s3 bucket.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published