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.dev3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066d5aa71f8baa84645a3fdb6cb15716ecc30d41980bce711af6f69e8ce70190 |
|
MD5 | eccaf1644b7d2856871bd94e3e71c6a5 |
|
BLAKE2b-256 | 441c85da37b372d1b825b614d4fccbc2373735f6a19d66c978741f6bed511833 |
Close
Hashes for dump_psql_roles_grants-0.2.2.dev3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cd86824b317e3d0922f458e6a95cabbbb4bf16ce124817a4890495dc66e82cb |
|
MD5 | 61fa174c5baa5586a8a94d018d668199 |
|
BLAKE2b-256 | ba6e0b0994bfe124d2ea7ddc4afe9d655fb7c90c41b73d156cb1bde28046f118 |