Just pipe dump from the old server to the new one:
pg_dump -h 172.26.76.100 -p 5432 -U username your_db | psql -h localhost -p 5432 -U username your_db
Replace the IP addresses and there you go. If you are using different versions of PostgreSQL, make sure that you are using pg_dump and psql from the latest version.
source
share