I have a shared heroku app, now I wan\'t to create a test app also in heroku with the same code, so I\'ve created a new app, ok, the thing is that for the app to work it nee
@danihp's answer is a good one - it is exactly what the documentation recommends.
BUT it requires posting the file in some awkward place like S3.
However, as the OP asks - how can we do this without having to push the database dump to someplace awkward like S3?
The most convenient answer I've been able to find (mentioned in @danihp's comment) is to use dropbox.
In detail (not described in danihp's comment):
Simply
Paste the url you just copied into the command:
heroku pgbackups:restore DATABASE_URL "<paste link here>"
If you don't want to put the dump file in your "Public" folder, then you need to do one more step.
You need to
HTH.
You should restore database from a url, see heroku import doc:
heroku pgbackups:restore DATABASE 'http://f.cl.l...3z18/mydb.dump'
Edit:
The pgbackups
addon has been deprecated. The process is now built in to the CLI tools. More details here. The new method looks like this:
heroku pg:backups restore 'http://f.cl.l...3z18/mydb.dump' DATABASE