Skip to main content

backupdb

An open-source CLI tool for backing up PostgreSQL database Locally or to Amazon S3 bucket

Usage

You will pass in the following on the command line:

  • The CLI command backup
  • The database URL you need to connect to
  • The storage driver (S3 or Local)
  • The destination (S3 bucket or local path)

Installation

$ pip install backupdb

Syntax

$ backupdb postgres://[USERNAME]:[PASSWORD]@[SERVER_IP:80/<db_name> --driver <driver_type> <destination>

Example usage for S3 backup

$ backupdb postgres://[USERNAME]:[PASSWORD]@[SERVER_IP:80/<db_name> --driver s3 mybucket01

Example usage for Local backup

$ backupdb postgres://[USERNAME]:[PASSWORD]@[SERVER_IP:80/<db_name> --driver local /var/local/mybackup.sql

Installation From Source

To install the package after you've cloned the repository, you'll want to run the following command from within the project directory:

$ pip install --user -e .

Preparing for Development

Follow these steps to start developing with this project:

  1. Ensure pip and pipenv are installed
  2. Clone repository: git clone git@github.com:sharhan-alhassan/backupdb
  3. cd into the repository
  4. Activate virtualenv source /venv/bin/activate
  5. Install dependencies: pip install -e . or pip install -r requirements

Metadata

Release files for backupdb 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for backupdb 0.0.5
File Size Uploaded
backupdb-0.0.5.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backupdb 0.0.5
File Interpreter ABI Platform
backupdb-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / backupdb-0.0.5.tar.gz

Download URL backupdb-0.0.5.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
68f9b30755ae0be8d2cc9c5b1a9f2ea4cfe08e9d5f64f3b4cde23e8837b36304
BLAKE2b-256 checksum
How to use checksums
46ad9e26e2bb8526bd1a78c27a1132e2db5d2dc1ce59923628f4617eeac5a7de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release files / backupdb-0.0.5-py3-none-any.whl

Download URL backupdb-0.0.5-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5f5e6ed8b3793aa7280e5e59d390a94f8137cc69e62483c3d4ad594ac6b502e
BLAKE2b-256 checksum
How to use checksums
cc88b0a31624a95f68256b6b681cef8dae06160f67dac56a9682c933228551da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page