backupdb-0.0.5
توضیحات
A simple CLI utility for backing up PostgreSQL databases.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | backupdb-0.0.5 |
| نام | backupdb |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sharhan Alhassan |
| ایمیل نویسنده | sharhanalhassan@gmail.com |
| آدرس صفحه اصلی | https://github.com/sharhan-alhassan/backupdb |
| آدرس اینترنتی | https://pypi.org/project/backupdb/ |
| مجوز | - |
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
```bash
$ pip install backupdb
```
## Syntax
```bash
$ backupdb postgres://[USERNAME]:[PASSWORD]@[SERVER_IP:80/<db_name> --driver <driver_type> <destination>
```
## Example usage for S3 backup
```bash
$ backupdb postgres://[USERNAME]:[PASSWORD]@[SERVER_IP:80/<db_name> --driver s3 mybucket01
```
## Example usage for Local backup
```bash
$ 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`
نیازمندی
| مقدار | نام |
|---|---|
| ==1.19.7 | boto3 |
| ==1.22.7 | botocore |
| ==0.10.0 | jmespath |
| ==2.8.2 | python-dateutil |
| ==0.5.0 | s3transfer |
| ==1.16.0 | six |
| ==1.26.7 | urllib3 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl backupdb-0.0.5:
pip install backupdb-0.0.5.whl
نصب پکیج tar.gz backupdb-0.0.5:
pip install backupdb-0.0.5.tar.gz