New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New target folder for backups #4963
Comments
@rsudev
Correct? |
@marco-dev |
Yes, we have to do that before doing any approachs of migrating the cache directory to other (possibly not user accessible locations which are potentially deleted upon uninstallation). |
We have to keep in mind to move existing backup files on migration. |
Just to inform that now we released and thus are at the beginning of a new phase on @marco-dev |
Good idea. Maybe we just continue there...you could move the last paragraph of the wiki page to there. You should add GPX import/export directories into the RFC as well. |
I removed RFC and wrote the content of page https://github.com/cgeo/cgeo/wiki/Target-disk-usage-structure I'm not familiar with the current thoughts about GPX import / export so maybe someone else can add this? |
Do we prefer to change the structure step by step? ` First move backup from |
Do you mean if it should happen in different releases? A user might skip a release, so there is no benefit. |
I guess it is best to move .cgeo to cgeo. But I don't know where to put it best for update. Where should this change from .cgeo to cgeo go to? |
@marco-dev I am unsure if moving will be a fast operation on all devices (i.e. only a renaming) or a long running copy process. IMHO we need to test, or does anyone know? Additionally if I don't fully understand your question "where to put it best for update". What do you mean with that? |
@Lineflyer My question is where to put the rename code to. We have a DataStorage for db update and settings for settings update. I suggest to add an update function to LocalStorage. But where should I call that update from? |
This has been implicitly implemented meanwhile during the latest data storage strategy cleanup. |
In order to disentangle the relatively important database backup from the less relevant cache file storage in .cgeo, it should be stored in a new location.
The location should still be the external storage (which is sdcard on old Android versions and internal storage on modern ones).
Suggestion:
The text was updated successfully, but these errors were encountered: