Dump Postgres Roles and Grants
Project description
Dump Postgres Roles and Grants
Install
pipx
pipx install dump-psql-roles-grants
dump-psql-roles-grants --help
pip
pip install dump-psql-roles-grants
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35fabb368ba71e51f6318090a54e185ba4de3a7112a001fd90fa8e1651534c60 |
|
MD5 | ff412c3c5d9bfd4749ae278d41bab379 |
|
BLAKE2b-256 | 36d46b24c1bebcd84b59cc2bc29f41a66532e741997e549b7fb75559f6981b10 |
Close
Hashes for dump_psql_roles_grants-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c60d6705b0960978676c0eabea39a30fe6dcfe2387322191afe390c576422a21 |
|
MD5 | 50611056da01c2b62a440047a55fe47d |
|
BLAKE2b-256 | dc6f5246e811dae619e6eae1ddadcc4505d7f5acb5ad8470dd519f1221193c51 |