pg_dump -C -h sourceip -U username password | psql -h destinationip -U username
initdb -D /path/to/data/folder
pg_ctl -D /path/to/data/folder start
pg_ctl -D /path/to/data/folder restart
vim /path/to/pg_hba.conf
# add the following line:
host all all 10.0.0.70/32 md5
# change IP address
host:port:dbname:usr:pwd
change permission
chmod 0600 ~/.pgpass