刘凡 9ff4d1d109 add S3,archive,truncate | 2 years ago | |
---|---|---|
.. | ||
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
herokupostgres_s3_backup.py | 2 years ago | |
requirements.txt | 2 years ago |
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!