Please find below link to detailed write up of my investigations of Pg_Dump and Pg_Restore command line tools for postgres.
Detailed description of using PG_Dump and PG_Restore
As ever performing database backups is absolutely vital on so many levels. Knowing where your data is, how to back it up and restore it with regular backups of the system of record is your best defence against data breach, data corruption, server failure or server room/building failure.
Learn backup and learn them well.
I also created a online tool to help create commands to be fed into pg_dump and pg_restore