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 URLyou 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:
- Ensure
pipandpipenvare installed - Clone repository:
git clone git@github.com:sharhan-alhassan/backupdb cdinto the repository- Activate virtualenv
source /venv/bin/activate - Install dependencies:
pip install -e .orpip 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| backupdb-0.0.5.tar.gz | 4.5 kB | Without provenance | Details for backupdb-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| backupdb-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for backupdb-0.0.5-py3-none-any.whl |
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
|
Security for backupdb 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.