Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayoubm490/pgbackup
https://github.com/ayoubm490/pgbackup
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/ayoubm490/pgbackup
- Owner: AyoubM490
- Created: 2023-07-12T16:12:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-13T10:57:11.000Z (over 1 year ago)
- Last Synced: 2024-12-04T18:53:45.394Z (about 2 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pgbackup
==========
CLI for backing up remote PostgreSQL databases locally or to AWS S3.
## Usage
Pass in a full database URL, the storage driver, and destination.
S3 Example w/ bucket name:
```bash
$ pgbackup postgres://[email protected]:5432/db_one --driver s3 backups
```Local Example w/ local path:
```bash
$ pgbackup postgres://[email protected]:5432/db_one --driver local /
var/local/db_one/backups
```## 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:```bash
$ pip install --user -e .
```## Preparing for Development
Follow these steps to start developing with this project:
1. Ensure `python` is installed
2. Clone repository: `git clone [email protected]:AyoubMs/pgbackup`
3. `cd` into the repository
4. Create virtualenv: `python -m venv pgbackup`
5. Activate virtualenv: `.\pgbackup\Scripts\Activate.ps1`