Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 884 Bytes

README.rst

File metadata and controls

46 lines (27 loc) · 884 Bytes

pgb

CLI for backing up remote PostgreSQL databases either locally or to S3 compatible storage.

Preparing for Development

  1. Ensure pip and pipenv are installed.
  2. Clone the repository: git clone [email protected]:akkowicz/pgb
  3. cd into the repository.
  4. Fetch development dependencies make install
  5. Activate virtualenv: pipenv shell

Usage

Pass in a full DB URL, the storage driver, and the destination.

S3 Example with bucket name:

$ pgb postgres://[email protected]:5432/test_db --driver s3 backups

Local Example with local path:

$ pgb postgres://[email protected]:5432/test_db --driver local /var/local/test_db/backups/dump.sql

Running Tests

Run tests locally using make if virtualenv is active.

$ make

If virtualenv isn't active then use:

$ pipenv run make