postgresql pg_dump
snippet in sql

postgresql pg_dump

user1127

pg_dump -U user -d db_name -h 127.0.0.1 > dump.sql