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.
Written by Mike Hall
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Heroku
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#