I was tasked with writing a python script to backup our current instance of Alfresco ECM. The backup works like a charm. I am running into problems with restoring PostgreSQL from the text dump .sql file.
Here is my command:
psql -f /home/alfresco/alfresco-backup/20180124/20180124_183146.sql -h
localhost
Here is the response:
psql: FATAL: database "postgres" does not exist
I can not find any information on this online. I have looked deeply into Postgres documentation and found nothing.
Thank you.