Last active
November 10, 2022 20:25
-
-
Save paddelkraft/9175059 to your computer and use it in GitHub Desktop.
Copy Garmin Training History Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
destination_dir=~/Documents/training/garminData/ | |
#device=$(ls ~/Library/Application\ Support/Garmin/Devices/) | |
for device in $(ls ~/Library/Application\ Support/Garmin/Devices/) | |
do | |
echo "Copy history files for Device $device" | |
cp ~/Library/Application\ Support/Garmin/Devices/$device/History/*.TCX $destination_dir | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script is for MAC OSX
Garmin ANT Agent is hiding the training data that it downloads from your Garmin device in a folder you can't easily get to with Finder. And then it uploads them to Garmin Connect.
If you want to have a backup of your files that you can see or if you want to upload them to Strava you need to go to Garmin connect and export every individual TCX file and it is a real pain. This got me really annoyed
This little script copies your TCX files from their hiding place and puts them in a directory/folder of your liking. You need to use the terminal to do this but ill try to make the instructions so that anyone that does know how handle files in Finder open an editor and to start The terminal and type simple commands should be able to do it
SETUP
garminHistoryCopy.sh
(or anything else that makes sense to you) in my case i saved it in my Home directory (can be found in finder by going to the Go menu and click Home)chmod +x garminHistoryCopy.sh
or whatever you called your file (the terminal opens in your Home directory)USE
./garminHistoryCopy.sh
if all goes well you should get output that looks like thisCopy history files for Device 3865553037