I used to have a script on my N810 that would run after startup and then it would writes lines from the the last known gps position data to a file. That would then get uploaded to my ftp server in 15min intervals when connected to wlan.