ictorn/pgb
Postgres Backup Tool
128
Command line tool for creating PostgreSQL database backups (using the pg_dump
utility) and automatically sending the generated dump to an external storage (e.g., S3).
-Fc
2025-01-01T000000Z.pgb
.Configuration is done by defining environment variables listed below.
PGB_CONNECTION_URI
: postgres connection stringPGB_S3_ENDPOINT
: server endpointPGB_S3_REGION
: region namePGB_S3_KEY
: access keyPGB_S3_SECRET
: secret keyPGB_S3_BUCKET
: bucket namepgb [--pg-dump-path <path>] [--storage <string>] [--directory <path>] [--extension <string>] [--keep <int>]
OPTIONS:
--pg-dump-path <path> full path to pg_dump executable (default: /usr/bin/pg_dump)
-s, --storage <string> storage location for backup file [s3, local] (default: s3)
-d, --directory <path> destination directory for backup file (default: .backups/db/)
-k, --keep <int> number of backups to retain [set 0 to keep all] (default: 2)
--keep-public-schema do not exclude public schema from backup
docker pull ictorn/pgb