To copy a database from server1 to server2, you might use which of the following:
pg_dump -h server1 database | psql -h server2 database
Well Done. Your Answer is Correct Keep it Up!
pg_copy -h server1 database | psql -h server2 database
pg_dump -h server1 database > pgsql -h server2 database
pg_mv -h server1 database | pgsql -h server2 database