'PGSQL Schema dump

I have to dump few schemas in PG SQL database. I haven't used PGSQL much. What is the best way to dump the schemas in a virtual machine and also restore them when needed? I have to dump just few , not all the schemas in that database.

Thanks , AJ



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source