PostgreSQL: How to backup only One Schema from a database and restore it on another server
You can select which schemas to dump with the -n option of pg_dump.  Create a dump of schema B:

pg_dump ...other...options... -Fc -n B &gt;dump.dmp


Restore the dump file:

pg_restore -d somedb dump.dmp


The target database does not have to have the same name as the original one.

Note that you will have problems if schema B has dependencies on schema C.  Then you won't be able to restore it separately.