刘凡 9ff4d1d109 add S3,archive,truncate 2 gadi atpakaļ
..
.gitignore 9ff4d1d109 add S3,archive,truncate 2 gadi atpakaļ
LICENSE 9ff4d1d109 add S3,archive,truncate 2 gadi atpakaļ
README.md 9ff4d1d109 add S3,archive,truncate 2 gadi atpakaļ
herokupostgres_s3_backup.py 9ff4d1d109 add S3,archive,truncate 2 gadi atpakaļ
requirements.txt 9ff4d1d109 add S3,archive,truncate 2 gadi atpakaļ

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!