Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flyck/la_pgbackup
https://github.com/flyck/la_pgbackup
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/flyck/la_pgbackup
- Owner: flyck
- Created: 2020-02-14T17:29:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T19:42:26.000Z (over 3 years ago)
- Last Synced: 2024-10-15T02:51:33.261Z (2 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
pgbackup
========CLI for backing up remote PostgreSQL databases locally or to AWS S3.
Preparing for Development
-------------------------1. Ensure ``pip`` and ``pipenv`` are installed
2. Clone repository: ``git clone [email protected]:example/pgbackup``
3. ``cd`` into repository
4. Fetch development dependencies ``make install``
5. Activate virtualenv: ``pipenv shell``Usage
-----Pass in a full database URL, the storage driver, and destination.
S3 Example w/ bucket name:
::
$ pgbackup postgres://[email protected]:5432/db_one --driver s3 backups
Local Example w/ local path:
::
$ pgbackup postgres://[email protected]:5432/db_one --driver local /var/local/db_one/backups
Running Tests
-------------Run tests locally using ``make`` if virtualenv is active:
::
$ make
If virtualenv isn’t active then use:
::
$ pipenv run make