OpenTracks icon indicating copy to clipboard operation
OpenTracks copied to clipboard

Export in one file

Open ghost opened this issue 4 years ago • 9 comments

Hi, this is great app. Thanks a lot. I like to propose a feature for regular backups:

Is your feature request related to a problem? Please describe. I like to do regular exports. But currently it will do export in multiple files.

Describe the solution you'd like Single export in one file (archive).

Describe alternatives you've considered To my knowledge, there is none.

Additional context I use de-googlified phone. F-Droid only.

ghost avatar Oct 06 '20 19:10 ghost

Definitely possible; we even have code for this in place (for import/export KML/KMZ/GPX). It is actually a leftover and not used (at the moment).

dennisguse avatar Oct 06 '20 19:10 dennisguse

@petrhejna just for clarification: why do you want one file instead of multiple ones?

dennisguse avatar Oct 22 '20 21:10 dennisguse

I would be handy to just upload one file to backup storage. Now I have to go through all files, select them and copy them.

For example with Keybase app, I need to upload files even one by one (which is of course problem of Keybase UX design, but I believe having just one archive file is convenient for many other kinds of use-cases).

ghost avatar Oct 22 '20 22:10 ghost

While testing the current export function I recognized that, when using a cloud destination, hundreds of small files take longer to upload than one single big file. So I think this would be a good option.

pstorch avatar Oct 23 '20 05:10 pstorch

(For upload) exporting one file has the issue that destination provider needs to handle partial changes as otherwise the whole file needs to be completely uploaded again and again. And the file might grow big quite fast...

dennisguse avatar Oct 23 '20 06:10 dennisguse

@dennisguse That's true, I think having both option would be perfect.

ghost avatar Oct 23 '20 12:10 ghost

One thing that this would be helpful for is phone transfers. It is a lot more efficient to do a single export, transfer the single file, and then import that single file.

maxolasersquad avatar Oct 31 '20 21:10 maxolasersquad

@petrhejna just for clarification: why do you want one file instead of multiple ones?

@dennisguse exporting to a single file would ease the interoperability and specially having filenames based in id. As real examples of use, you can find easily and send to a friend (by different ways) or just upload the file to a service as Strava.

dapgo avatar Jan 23 '21 15:01 dapgo

We need two things:

  • a concept for the user interface (I assume we need to keep the export to individual files)
  • and some actually tiny change to TrackWriter classes + TrackImporter classes for GPX/KML.

Coding is the easy part. If someone has time to create a concept that would be great!

dennisguse avatar Jan 23 '21 18:01 dennisguse