Skip to content

Instantly share code, notes, and snippets.

@matharden
Created June 4, 2013 21:49
Show Gist options
  • Save matharden/5709910 to your computer and use it in GitHub Desktop.
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.
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