Mooving the OSM data from e server to my PC

I have the OSM data on a server running Postgres, and I want to be able to work on the data offline, so I want to copy the data fom the server onto my computer.
I have postgres on my computer, but I cant figure out how to copy the BD from the server on to my pjadmin