Skip to main content

Database backups locally or to AWS S3.

Project description

CLI for backing up remote PostgreSQL databases locally or to AWS S3

Preparing the development

  1. Ensure pip and pipenv are installed

  2. Clone repository: git clone git@github.com/iamkaushal/pgbackup

  3. cd into repository

  4. Fetch development dependencies make install

  5. Activate virtualenv: pipenv shell

Usage

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

S3 Example with bucket name:

$ pgbackup postgres://bob@example.com/5432/db_one --driver s3 backups

Local example with local path

$ pgbackup postgres://bob@example.com/5432/db_one --driver local /var/local/db_one/backups

Running tests

Run tests locally using make if virtualenv is active:

$make

If virtualenv isn’t active then use:

$pipenv run make

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

pgbackup-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

pgbackup-1.0.1-py36-none-any.whl (4.3 kB view details)

Uploaded Python 3.6

File details

Details for the file pgbackup-1.0.1.tar.gz.

File metadata

  • Download URL: pgbackup-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.10.2

File hashes

Hashes for pgbackup-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ffa9a365dd32572252e57d197c68d63bbd397e80cc30ff5d15f9c43a3292ade8
MD5 327b6f8d056607f11240fa3cc8cea113
BLAKE2b-256 b22bd5371329f6bc9df6c8524e29062ac844fa8044639704a4e1e0468b7ffb9e

See more details on using hashes here.

File details

Details for the file pgbackup-1.0.1-py36-none-any.whl.

File metadata

  • Download URL: pgbackup-1.0.1-py36-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3.6
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.10.2

File hashes

Hashes for pgbackup-1.0.1-py36-none-any.whl
Algorithm Hash digest
SHA256 c4bb6d60a8e65b28783bd7aaa31a62ebfc58e85547c1d2244586172d6e40281f
MD5 37e47dd2efb8e2af38cbdde4fc19f5ee
BLAKE2b-256 bacaa4afe9d0d22d525a9b1d65df7eb699316f4a4f019308dc5d661769e1c317

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