I don't know what model Garmin you have, but it should save before dying. Mine has crashed and rebooted in the middle of an activity, and it only lost a little data in the the middle. Mine has also offered to go into low-power mode well before it runs out of battery. When I know I'm going on an all-day ride, I'll take a USB battery pack with me in my bar bag and recharge halfway through the ride.