Here is a simple command to take Postgres Database backup with Compress option pg_dump -Fc dbname > filename Here is the official document from Read More Postgres database with compressed option on windows