Created
February 23, 2017 18:22
-
-
Save johno/6aa68d8cb1884ca3415f0060f478c7bb to your computer and use it in GitHub Desktop.
Grab the latest pg copy for a heroku app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| _now=$(date +"%s") | |
| heroku pg:backups capture --app $1 | |
| curl -o $_now-$1.dump `heroku pg:backups public-url --app $1` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment