Dump Postgres Roles and Grants
Project description
Dump Postgres Roles and Grants
Install
You can choose
- plain python package
dump-psql-roles-grants
that requireslibpq
system library - or package
dump-psql-roles-grants[binary]
that have binaries included
pipx
pipx install 'dump-psql-roles-grants[binary]'
dump-psql-roles-grants --help
pip
pip install 'dump-psql-roles-grants[binary]'
python -m dump_psql_roles_grants --help
docker
docker pull rgeraskin/dump_psql_roles_grants
docker run --name dump_psql_roles_grants --rm rgeraskin/dump_psql_roles_grants --help
Usage
-
Generate an example config file
dump_psql_roles_grants gen-example-config -o config.yaml
-
Place instances connection info to
_inputs
dir_inputs/ ├── dev.yaml ├── prod.yaml ├── stage.yaml └── test.yaml
File format: yaml or json
<INSTANCE NAME 1>: dbname: <DB TO CONNECT> host: <INSTANCE HOSTNAME> password: <PASSWORD> user: <USER NAME> <INSTANCE NAME X>: dbname: <DB TO CONNECT> host: <INSTANCE HOSTNAME> password: <PASSWORD> user: <USER NAME>
-
Review
config.yaml
-
Run
dump_psql_roles_grants --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dump_psql_roles_grants-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5e153cff0a96e3932a1a575350a7d30e09fdc63e68b4ea5e8bc0beb46aee4a0 |
|
MD5 | 124f36c149827b40df0c751b8c826511 |
|
BLAKE2b-256 | 4523c3da670bec8740a830bdf0ac3936f6e58667d9c313793d28862d98f90dda |
Close
Hashes for dump_psql_roles_grants-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27ba51b2cea038804f527e06d7fca9798954ab38f6f5ff62e702b1a3c041293e |
|
MD5 | 03443d93f2919baf42dcff4107c36504 |
|
BLAKE2b-256 | 0cfb5b11a7f4b0c5db21fa4aeb607f7915d3828f1ee6779b63b5d22afd25fa66 |