Backup / Restore Distributor
Replication is tied to the machine name of the distributor.  If the new instance will have the same machine name then stop the agents, backup the distributor, and restore it using the keep_replication setting as on.  Then restart the agents.

If the hostname of the distributor is changing you'll want to tare down the replication and rebuild it.