CLI for backing up remote PostgesSQL databases locally
$ chmod u+x install_docker_and_db.sh && ./install_docker_and_db
- Ensure
pip, andpipenvare installed. - Clone the repo:
https://github.com/ayoubensalem/PostgresBackup - Fetch development dependencies :
make install
Pass in a full database URL, the storage driver, and destination.
Local Example w/ local path:
$ pgbackup postgres://[email protected]:5432/db_one --driver local /var/local/db_one/backups/dump.sql
Run tests locally using make if virtualenv is active:
$ make
If virtualenv isn't active then use:
$ pipenv run make