Skip to content

SirCremefresh/bmw12-simple-postgresql-backup

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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