make complete backup of postgresql database code example Example: postgres make sql dump pg_dump -U username dbname > dbexport.pgsql