title: Download PG database as a file from Heroku
body: <p>I'm trying to download a file (a copy) of our staging DB. I'm using <code>pgbackups</code> following <a href="https://devcenter.heroku.com/articles/heroku-postgres-import-export" rel="nofollow">these docs</a>.</p>
  
  <p>I created a backup, than got the <code>public-url</code> using <code>heroku pgbackups:url b462 --app staging-appname</code>, which worked.</p>
  
  <p>Than I run the command <code>curl -o latest.dump</code> <code>heroku pg:backups &lt;public-url&gt; b462 -a staging-appname</code> and get <strong>curl: no URL specified!</strong></p>
  
  <p>Where it says <code>&lt;public-url&gt;</code> I've copied the actual long public-url, as in <code>https://s3.amazonaws.com/reallly-long-url-with-acess-key-ect</code>.</p>
  
  <p>What am I missing here?</p>