when executing
pg_restore -Fc --host=127.0.0.1 --dbname=fusionpbx --username=fusionpbx /var/backups/fusionpbx/postgresql/fusionpbx_pgsql_$now.sql
I"m getting the following output
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 3; 2615 2200 SCHEMA public postgres
pg_restore: [archiver (db)] could not execute query: ERROR: schema "public" already exists
Command was: CREATE SCHEMA public;
DROP SCHEMA
CREATE SCHEMA
pg_restore: connecting to database for restore
pg_restore: creating SCHEMA "public"
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 3; 2615 2200 SCHEMA public postgres
pg_restore: [archiver (db)] could not execute query: ERROR: schema "public" already exists
Command was: CREATE SCHEMA public;
I have done restores successfully many times using the restore script from docs but today I am getting the same exact error as you. Usuing the latest version trying to restore to another host.
1. First I change the PSQL password on the Destination server to be the same as the Source server and update the config.php file and restart and make sure were still talking to the DB.
2. On Source server I have the fusionpbx-backup.sh tested and working
3. On the Destination server have the fusionpbx-restore.sh runs and completes
4. The web inteface is a blank white page and the title is blank <!--{title}-->