0

I am trying to upload a postgres database backup file to my hosting server. But I am getting these errors. No idea what is wrong with this file.enter image description here

Laurenz Albe
  • 167,868
  • 16
  • 137
  • 184
Pashupati Sah
  • 156
  • 1
  • 7

2 Answers2

2

I got my the answer. Just backup in plain format rather than custom. Thanks for your effort.

Pashupati Sah
  • 156
  • 1
  • 7
0

You need to use a .sql file when uploading the database to your new stack. By default, Heroku gives you a .dump file. What worked for me was copying the database to my local development pg db using the .dump file and then using that to generate a .sql file which I pushed to my new app.

or

adapted to support the latest official dokku postgres plugin, pg_restore -O latest.dump | dokku postgres:connect <db_name>