db-dumper script that makes dumps of GCP Cloud SQL Postgres databases
10K+
db-dumper is a script that makes dumps of GCP Cloud SQL Postgres databases to a GCP Cloud storage bucket.
The script can be configured using environment variables
Required:
DBDUMPER_DB_INSTANCE_NAME - GCP Cloud sql instance name, e.g. project:region:instanceDBDUMPER_DB_NAME - DB name lo loginDBDUMPER_DB_USER - DB user name lo loginDBDUMPER_DB_PASS - DB user password lo loginDBDUMPER_QUERY - DB query, e.g. SELECT * FROM CustomersDBDUMPER_BUCKET_NAME - name of a GCP Cloud storage bucketOptional:
DBDUMPER_BUCKET_PATH - base path in the bucket, the default value is the empty string (the root of the bucket)DBDUMPER_BUCKET_FILE_BASE_NAME - first part of the dump file name, the default value is dumpDBDUMPER_LOG_LEVEL- log levels of the logging Python module, the default value is INFO{DBDUMPER_BUCKET_PATH}/{DBDUMPER_BUCKET_FILE_BASE_NAME}-%m%d%Y-%H%M%S.csv
Content type
Image
Digest
sha256:d1fbec172…
Size
69.9 MB
Last updated
about 3 years ago
docker pull paritytech/db-dumper