刘凡 9ff4d1d109 add S3,archive,truncate vor 2 Jahren
..
.gitignore 9ff4d1d109 add S3,archive,truncate vor 2 Jahren
LICENSE 9ff4d1d109 add S3,archive,truncate vor 2 Jahren
README.md 9ff4d1d109 add S3,archive,truncate vor 2 Jahren
herokupostgres_s3_backup.py 9ff4d1d109 add S3,archive,truncate vor 2 Jahren
requirements.txt 9ff4d1d109 add S3,archive,truncate vor 2 Jahren

README.md

HerokuPostgres-S3-Backup

Early Stage Software - unstable and unrefined... for now!

Download a Heroku Postgres backup and upload to Amazon S3

##Usage Install Requirements

$ pip install -r requirements.txt

Ensure that the Heroku toolbelt is installed and you are logged in.

$ heroku login

View help

$ herokupostgres_s3_backup.py --help

To get the URL of your pgbackups, The program uses the Heroku Toolbelt.

$ heroku pgbackups:url --app myAppName
"https://some-pgbackups-url.com/"

This must be done because the output of pgbackups:url changes as new backups are created. The Heroku toolbelt is used because there is no standard api to fetch PG backups.

##Contributing Pull requests and suggestions welcome!