Created
June 4, 2013 21:49
-
-
Save matharden/5709910 to your computer and use it in GitHub Desktop.
Quick Terminal command to back-up Heroku PostgreSQL database with today's date.
This file contains 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
cd ~/Apps/app-name | |
heroku pgbackups:capture | |
curl -o $(date "+backup-%Y-%m-%d.dump") `heroku pgbackups:url` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment