ARK-Builders / ARK-Navigator

Android app for navigation through your data
MIT License
15 stars 15 forks source link

Storage backup #260

Closed kirillt closed 2 years ago

kirillt commented 2 years ago

In rare cases, storage (including tags, favorites and other features in future versions) can get erased.

One way to fix this is to write every new version of any sub-storage into new file, labeled with increasing counter, and load the latest file during application startup. This would save the most of data in case of loss, but a little bit more difficult to impement.

Another way is to backup save the whole storage (.ark folder), e.g. into .ark-backups folder, and label it with timestamps. In case of crash it would be possible to restore the data manually. Last session would be lost, but this solution is very easy and robust.

kirillt commented 1 year ago

Initial implementation: #264 Later improvement: #324