Turns out this feature already exists. Go to the ride you want to duplicate in activities, on the left hand side you will see a wrench that says Actions, go to "export GPX". Download the gpx file o...
The person I was riding with had their phone die and their ride was not completely recorded. It would be super useful if he could just duplicate my ride as his.