28

I exported a postgres db from pgAdmin in a plain format because I wanted to search the whole db text. I then tried to restore the database back but it gives an error saying that the archive file is not valid archive file. How do I restore the db back if it can be restored?

yankitwizzy
  • 401
  • 1
  • 5
  • 7

1 Answers1

27

run:

psql -U your_user_name your_db_name < your_dump_file
guido
  • 386
  • 3
  • 7