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.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a740cb9978a98b0028975cd66234bb02a48a349a12aa0e70c38e275a14f4e20 |
|
MD5 | d98212dbdecc2517abdcc89971d03691 |
|
BLAKE2b-256 | 73bfa01ef1e4431f501ba78c2b0790ede7e17a4625e055c8f60a82de7863f149 |
Close
Hashes for dump_psql_roles_grants-0.2.2.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed38a96372ad364747af5cab4a4f7ed2faa4103baa24dd9875881ce45cd18a16 |
|
MD5 | 2f37464149ce7c941f39f04f43771f78 |
|
BLAKE2b-256 | 33f9fb5088586e7bcc714493aaebf8d96793156ddad381eb3283a5024dcf2555 |