You want to backup and restore your database containing RiverGIS data. Do it as with any other database: create dump, move it to the new machine and restore. There are numerous ways of creating and restoring database dumps. Please see how to do it using command line and pgAdmin:
On the new machine, don't forget to create the postgis extension prior to restoring the database.