Take a dump of Postgresql database


pg_dump -h host -U root -d db1 -f db1.sql

Comments