It’s been a while since any Bobby Dazzler has posted something here. We’ve been riding a lot in 2013, hit by cars, podium placing in A-grade XCO, new bikes, and another one of us now has a baby!!! But one post at a time.
It became apparent to me recently, that my Garmin Edge 810 is full of little software bugs. So I wanted to update to the latest firmware which supposedly fixes lots of them – albeit introduces more. With that in mind, I went to start the update and a prompt informs me that I need to backup all my settings as this latest update will wipe all of my settings from the device. What a pain, surely Garmin could automatically copy the files, install the firmware, then copy them back? Negative. So I was forced to follow the instructions here.
I thought it all seemed a little tedious, especially if I have to do it every time they release a new firmware update. I also think that a Garmin Edge 810 is hot property and likely to get flogged, or with my luck, smashed at some point. Frequent backups would be good. So, I put a few lines of code together to create a windows batch file script. To use this yourself, you’ll need to create a batch file in Windows, and copy this code to it. Then when you run it, it’ll save you having to copy all the specific files you need to keep from your device automatically.
Actually as I write this article, I realise I could be adding it to the already existing batch file I run each time I connect my device to the computer to charge, which mirrors all the activity files to my computer – quite handy for when you realise your 3rd party software, or even Garmin Connect, does not allow for bulk export of data, and you really want to try whatever new fancy 3rd party software to upload all your history to.
FOR %%A IN (%Date%) DO (
FOR /F "tokens=1-3 delims=/-" %%B in ("%%~A") DO (
mkdir "e:\Garmin Data\Settings\%Today%"
cd "e:\Garmin Data\Settings\%Today%"
FOR %%i IN (Locations,Settings,Totals,Weight) DO copy "h:\Garmin\%%i\%%i.fit" "e:\Garmin Data\Settings\%Today%\"
mkdir "e:\Garmin Data\Settings\%Today%\Sports"
copy "h:\Garmin\Sports\*" "e:\Garmin Data\Settings\%Today%\Sports"
The first five lines of code above work out what today’s date is, create a sub-directory within my e:\Garmin Data\Settings\ directory of today’s date, then changes to that directory. The FOR line is more complicated than it needs to be, but just copies the four Locations.FIT, Settings.FIT, Totals.FIT, and Weight.FIT files from your device. It does not maintain the same directory structure as the device, just in the interests of saving some folder creation and clutter on your computer. On the rare occasion that you need to restore the files, just look at your device and you’ll work out where to copy them back to. Then the last two lines of code create a Sports sub-directory within the ‘date’ directory we created, and copies all your Sports profile files of your different bikes and stuff.
Of course I ran this to check it works for me, but you’ll have to change the drive letter and the directory of your computer you want to back up to in the above script. You’ll also have to take responsibility of doing this yourself, although you’re welcome to comment below for help.
Having bothered with all of this, I used the Garmin WebUpdater which turns out it didn’t wipe any of these files from my device. Although I’m glad that I’ve got a backup in case my device fails, gets smashed, stolen, or I loose it out riding. Who knows. I also have my e:\Garmin Data\ folder backed up to the cloud.