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.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-py36-none-any.whl (3.3 kB view details)

Uploaded Python 3.6

File details

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

File metadata

  • Download URL: pgbackup-1.0.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.tar.gz
Algorithm Hash digest
SHA256 795a648a33f0be395d5705aa9a5f28be3af4076fbd0a6de612dedda77fc6dd31
MD5 4285fad1a8214c9c0209369d3814c257
BLAKE2b-256 be51e4f4b34f289fb9ec3bcd6668b232b68263202a16d150031ca0accf85a145

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgbackup-1.0-py36-none-any.whl
  • Upload date:
  • Size: 3.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-py36-none-any.whl
Algorithm Hash digest
SHA256 e5e4f2a61f6edfc3b59c216c55c29afd7c0a28f1720ca246c485d15ce4b1ab14
MD5 11568ab7bd968f4884e98070e9d77505
BLAKE2b-256 7e884c7cf18fcf2c915f6e39271fe5390ebf6adc80497c3f1a22193a11b0ec8c

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