pg_dump extract a PostgreSQL database into a script file or other archive file

Description

A core utility for backing up a single PostgreSQL database

pg_dump is a core utility for backing up a single PostgreSQL database as an SQL script, TAR archive or custom archive file.

pg_dump has been part of PostgreSQL since it was first released.