Based on official postgres images from docker hub.
For uploads to Dropbox it uses Dropbox-Uploader script.
- latest
$ 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
Hostname or IP of PostgreSQL server.
Port of the PostgreQL server (5432 by default).
Database name, which needed to backup.
Username to connect to Database.
Password for Username.
SSL mode (prefer by default).
7zip encryption key.
7zip is used for encryption and compression.
API KEY for Dropbox uloads.