Giter Site home page Giter Site logo

dump_psql_roles_grants's Introduction

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

dump_psql_roles_grants's People

Contributors

rgeraskin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.