Sign inSign up

lnsp/pgsql-backup-s3

By lnsp

Updated almost 7 years ago

Small tool that performs a PostgreSQL backup and stores the result in a S3-compatible service.

Image
0

1.8K

lnsp/pgsql-backup-s3 repository overview

pgsql-backup-s3

Build

Small tool that performs a PostgreSQL backup and push the dump to an S3-compatible service.

Environment configuration

VariableDescriptionDefault value
HOSTHost parameter for pg_dump"localhost"
PORTPort parameter for pg_dump"5432"
DATABASEDatabase to dumpnone
USERAccess role"root"
PASSWORDAccess password"root"
PGDUMPBINARYBinary location of pg_dump"/usr/bin/pg_dump"
ACCESSKEYAccess key for S3 servicenone
SECRETKEYSecret key for S3 servicenone
ENDPOINTS3 endpoint namenone
BUCKETS3 bucket identifiernone
PATHBackup file path""
PREFIXBackup file prefix""

Run on Kubernetes

If you want to run the prebuilt container on Kubernetes, you are welcomed to do so. In the /docs folder you find a CronJob manifest example.

Build from scratch

Since this project supports Go modules, building it from scratch is very straightforward.

git clone https://github.com/lnsp/pgsql-backup-s3.git
cd pgsql-backup-s3
go build

Tag summary

Content type

Image

Digest

Size

10 MB

Last updated

almost 7 years ago

docker pull lnsp/pgsql-backup-s3