Public | Automated Build

Last pushed: 2 years ago
Short Description
Postgres backup
Full Description

#postgres-backup-s3

A simple docker container to backup postgres to s3. Easy to integrate with cron.

Usage

To initiate a backup.

docker run --rm --link postgres:postgres -e AWS_ACCESS_KEY_ID=123 -e AWS_SECRET_ACCESS_KEY=123 -e S3_BUCKET=bucket -e S3_POSTGRES_PREFIX=postgres vmakhaev/postgres-backup-s3 backup

To list the backups on s3.

docker run --rm --link postgres:postgres -e AWS_ACCESS_KEY_ID=123 -e AWS_SECRET_ACCESS_KEY=123 -e S3_BUCKET=bucket -e S3_POSTGRES_PREFIX=postgres vmakhaev/postgres-backup-s3 list

To restore a given backup, where [backup-file-name] is the name of the backup file you would like to restore.

docker run --rm --link postgres:postgres -e AWS_ACCESS_KEY_ID=123 -e AWS_SECRET_ACCESS_KEY=123 -e S3_BUCKET=bucket -e S3_POSTGRES_PREFIX=postgres vmakhaev/postgres-backup-s3 restore [backup-file-name]
Docker Pull Command
Owner
vmakhaev
Source Repository