+
Skip to content

fomk/postgres-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for PostgreSQL backup


Based on official postgres images from docker hub.

For uploads to Dropbox it uses Dropbox-Uploader script.

Supported tags


  • latest

How to use this image


start backup

$ docker run --rm \
    -e PG_HOST=<database host> \
    -e PG_DATABASE=<database> \
    -e PG_USERNAME=<database user> \
    -e PG_PASSWORD=<database user password> \
    -v /backups:/backups \
    fomk/postgres-backup

Environment Variables


PG_HOST

Hostname or IP of PostgreSQL server.

PG_PORT

Port of the PostgreQL server (5432 by default).

PG_DATABASE

Database name, which needed to backup.

PG_USERNAME

Username to connect to Database.

PG_PASSWORD

Password for Username.

PG_SSL_MODE

SSL mode (prefer by default).

ENCRYPTION_KEY

7zip encryption key.

7zip is used for encryption and compression.

DROPBOX_API_KEY

API KEY for Dropbox uloads.

About

Docker container for PostgreSQL backup and upload to Dropbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载