2

I am attempting to restore a local snapshot of a database into a heroku dev instance.

heroku pgbackups:restore --app app_name HEROKU_POSTGRESQL_AMBER_URL https://www.dropbox.com/etc

But I consistently receive the following error

HEROKU_POSTGRESQL_AMBER_URL  <---restore---  db.dump

Retrieving... done
!    An error occurred and your restore did not finish.

The database snapshot was captured using the pg_dump string in the heroku docs:

PGPASSWORD=pwd pg_dump -Fc --no-acl --no-owner -h localhost -U postgres db > db.dump

and the dump file is in a dropbox share (so available with direct URL access)

Both Heroku and the local database are PG 9.2.

Toby Hede
  • 36,755
  • 28
  • 133
  • 162

1 Answers1

3

Heroku logs contain all of the output from pgbackups, which will help track down the issue.

Toby Hede
  • 36,755
  • 28
  • 133
  • 162
  • 1
    @Thermech Just type the command `heroku pg:backups:info ` where backupkey is the key generated for the current backup. – Ahtisham Sep 02 '18 at 17:54