[Solved] Enterprise geodatabase on PostgreSQL backup and restore

ziggy Asks: Enterprise geodatabase on PostgreSQL backup and restore
windows 7, PostgreSQL 9.4/ArcSDE/PostGIS backend database that I am transferring to another computer.

My backup command is as follows. host 5433

Code:
pg_dumpall -h localhost -p 5433 -U postgres -c -f "file.backup"

backups up all nice and everything.

when I go to restore it on windows 10, PostgreSQL 9.4, port 5433 I run

Code:
psql -h localhost -p 5433 -U postgres -f file.backup

so everything restores okay. All tables, schemas, logins are good. I can connect with QGIS and everything works fine.

Problem

When I go to add an ArcGIS database connection I get this error


enter image description here

UPDATE

I uninstalled postgres on the new computer reinstalled 9.5, ran psql -h localhost -p 5432 -U postgres -f file.backup on port 5432 and in the CMD I found 1 error it should while it is running the restore

Code:
psql:R:/Data/LUCZ_2017/blah.backup:12531010: ERROR:  relation "gdb_items" does not exist

whats going on here!

Based on Evan Carroll’s suggestion I ran

Code:
C:Program FilesPostgreSQL9.5bin>psql duS+
Password:
psql: FATAL:  password authentication failed for user "rizagha"

the CMD wouldn’t let me enter my password, I pressed enter and received the above error

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.