There is an export button on top right of the repository info page. It will export the data sets, including the commit history, but without comments and user information (basically all information that is independent from the server)
On the new server you can use the + / Import Repository on the Dashboard page