dump (backup your postgresql) i am backup my database called google into a file called google.sql
./pg_dump -i -h localhost -p 5432 -U google -F c -b -v -f google.sql google
now i am moving that to another server using scp or rsync, then restore it
cat google.sql | pgsql -U google_user google_restore
google.sql adalah nama file backup
google_user adalah nama user database postgresql kamu
google_restore adalah nama schema database kamu