When pg_restore honours --dbname option
There are few command line options you need to consider.

  pg_restore -x --no-owner --dbname=mynewdb --exit-on-error -Fc database.bak



-Fc: restore from a binary back up as its more flexible than plain text SQL dump
--dbname: restore under this database name (must be created beforehand using createdb)
-x: do not try to restore access priviledges (e.g. the superuser name may change between databases)
--no-owner: the database owner user is different on the system where restore is performed
--exit-on-error: If bad stuff happens, abort and don't flood your terminal with useless errors