I have made several attempts to restore arcgis enterprise 10.6.1 on our new environment using webgisdrutil tool. The tool successfully restored hosted server/datastore, Image server and 2 publishing arcgis server. It also appears that it has restored the items in the content folder of arcgis portal. But fails on portal postgresql database restoration. Error generated by wegisdrutil below:
{"error":{"code":500,"details":null,"message":"Failed to import site. Failed to
update the federated servers. Failed to update the database."}}.
The event viewer log below:
postgres: could not find the database system
Expected to find it in the directory "D:/arcgisportal/db",
but could not open file "D:/arcgisportal/db/global/pg_control": No such file or directory
Is there any way I can resolve this issue by using backup/restore feature of postgresql database?