Skip to content

Command-line tool to back up Postgresql databases locally or to S3. Built with Python 3.8.

Notifications You must be signed in to change notification settings

jos3neto/postgresql-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 with bucket name:

$ pgbackup postgres:https://[email protected]:5432/db_one --driver s3 backups

Local Example with local path:

$ pgbackup postgres:https://[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:

$ 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 [email protected]:jos3neto/pgbackup
  3. cd into the repository
  4. Activate virtualenv: pipenv shell
  5. Install dependencies: pipenv install

About

Command-line tool to back up Postgresql databases locally or to S3. Built with Python 3.8.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages