how to create dump file in postgres code example Example: postgres make sql dump pg_dump -U username dbname > dbexport.pgsql