刘凡 9ff4d1d109 add S3,archive,truncate | 2 лет назад | |
---|---|---|
.. | ||
.gitignore | 2 лет назад | |
LICENSE | 2 лет назад | |
README.md | 2 лет назад | |
herokupostgres_s3_backup.py | 2 лет назад | |
requirements.txt | 2 лет назад |
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!