Last Updated: February 25, 2016
· just3ws

One line download of your apps latest Heroku PG backup

heroku pgbackups:url | wget -i -

heroku pgbackups:url returns the direct link url to your latest backup file.

wget -i - tells wget to expect to receive the URL via input file and the - informs it to expect it to come via STDIN.

You can add this to an alias like alias download-archive="heroku pgbackups:url | wget -i -" then use your SHELL autocompletion to grab the latest file with a few keystrokes.