Here you go! Everything I redacted is correct. The port is the only thing that is wrong.
[1] pry(main)> BackupRestore.database_configuration
=> #<struct BackupRestore::DatabaseConfiguration
host="[REDACTED[",
port=5432,
username="[REDACTED]",
password="[REDACTED]",
database="[REDACTED]">
[2] pry(main)> BackupRestore::DatabaseRestorer.psql_command
=> "PGPASSWORD='[REDACTED]' psql --dbname='[REDACTED]' --single-transaction --variable=ON_ERROR_STOP=1 --host=[REDCATED] --port=5432 --username=[REDACTED]"
I’ll also reiterate that the blank instance is able to connect to the database for everything except restoring from the backup.