question about secondary server

I am wanting to build a second server.

  1. can one just dump the DB on the first and restore on the second?
  2. can one setup the second server as a replicated slave of the first?

think of this as a hot standby