The solution that allows the restore to complete is to stop services on the director, delete the database, create a new database, re-run
BBR Director Restore on a jumpbox, and then start the services back up.
This would be the order:
For Operations Manager v3.0+ (PostgreSQL 15)
monit stop all
monit start postgres
/var/vcap/packages/postgres-10/bin/dropdb -h 127.0.0.1 -p 5432 -U vcap bosh
/var/vcap/packages/postgres-10/bin/createdb -h 127.0.0.1 -p 5432 -U vcap bosh
monit restart postgres
bbr director restore -a <path>
monit start all
Prior Versions
monit stop all
monit start postgres
/var/vcap/packages/postgres-10/bin/dropdb -h 127.0.0.1 -p 5432 -U vcap bosh
/var/vcap/packages/postgres-10/bin/createdb -h 127.0.0.1 -p 5432 -U vcap bosh
bbr director restore -a <path>
monit start all