#Create Non-compressed PostgreSQL Database Backup
pg_dump -U <DB Username> <DB Name> > backup.sql

#Create Compressed PostgreSQL Database Backup
pg_dump -U <DB Username> <DB Name> -Fc > backup.dump

#Create a Schema-only PostgreSQL Database Backup
#In some cases, you are not interested in backing up all of the Data 
#in the database and only want to backup the schema (tables, indexes, triggers, etc). 
#This is done by using the -s option.
pg_dump -U <DB Username> <DB Name> -s > schema.sql