Skip to main content

Dump Postgres Roles and Grants

Project description

Dump Postgres Roles and Grants

Install

You can choose

  • plain python package dump-psql-roles-grants that requires libpq system library
  • or package dump-psql-roles-grants[binary] that have binaries included

pipx (preferred)

pipx install 'dump-psql-roles-grants[binary]'
dump_psql_roles_grants --help

brew

brew install rgeraskin/homebrew/dump-psql-roles-grants
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

  1. Generate an example config file dump_psql_roles_grants gen-example-config -o config.yaml

  2. 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>
    
  3. Review config.yaml

  4. Run

    dump_psql_roles_grants --help
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dump_psql_roles_grants-0.3.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dump_psql_roles_grants-0.3.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file dump_psql_roles_grants-0.3.1.tar.gz.

File metadata

  • Download URL: dump_psql_roles_grants-0.3.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1017-azure

File hashes

Hashes for dump_psql_roles_grants-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0aa661a9e3783ed06d407c5a45f8ff1245d9be27d09c232170e17373a96a3f44
MD5 23bd69f77ca96e6e19d174ad340be52e
BLAKE2b-256 02124b600dba2d3721faae5695346f16e2e53906514de6078795115b20e22f55

See more details on using hashes here.

File details

Details for the file dump_psql_roles_grants-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dump_psql_roles_grants-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca8a20b0cee250a5ee47f89e0c98c3e52b87567df1a03a2f68aa5c67c13ab4bc
MD5 ff4783d2ebc4afc7622a91dd99225f30
BLAKE2b-256 a1523b02217920c9309a3036fa8e85de3fa17953e17912aedf690b759bd4bbba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page