CLI for backup remote Postgresql database either locally or to S3.
- Ensure
pip
andpipenv
are installed - Clone Repo
cd
into the repo- Fetch dev dependencies
make install
- activate virtualenv
Pass in a full database URL , the storage dirver , and the destination
s3 Example w/ bucket name:
- ::
- $ pgbackup postgresql://[email protected]/db_one --driver s3 backups
Local example w/ local path:
- ::
- $ pgbackup postgresql://[email protected]/db_one --driver local /var/local/db_one/backups/dump.sql
Run test locally using make
if venv is active
- ::
- $ make