-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Upon creating new local repository, all files deleted #14
Comments
The local repo algorithm as it is now makes no assumption whether file disappearance is due to deletion. So the general advice is to enable backup (or mirror if you are using Android 9+) in order to persist your data across install / uninstall / hardware failures. There is also an option to activate a trash bin folder with this flag: com.appmindlab.nano.pref_keep_deleted_copies Regarding the missing repo path, which Android version are you using? For Android 10 or above, if you pick Default Folder when you first set up the app, the path will go under Android/data/com.appmindlab.nano/files |
I restored app. So it had older local repository, which can not be changed as far as I can tell. Is there no way of adding a popup when sync error detected. |
The app treats its repo content and internal storage unlike other apps. The internal storage is more a search engine (like a database) and cache of the notes inside the repo. So when the repo folder is modified, other components can only reflect the change. Mirror is in sync with local repo nearly real time, so once populated the data is very much in sync. Best to keep the mirror on a different medium (such as the sd card of your device, or some other locations). Please feel free to contribute to the project if you have a more all encompassing idea. The idea behind the app may have grown a little more than a solo developer can handle :-) |
@appml And is there a way to reset or change local repo? As local repo points to a folder that does not exist but still app has notes, which is contrary to the cache and search you described, since they only exist at the moment in internal storage. Thank you for your time |
@rancidfrog Just by toggling Auto Backup under settings should activate daily backups, without needing to manually flipping the flag's true / false value. One caveat is that either newer Android versions (10 or above) or manufacturer specific ROMs are getting extremely aggressive in stopping the backup process halfway to conserve battery. One might want to turn off all battery optimization / background process prevention (however the steps are highly dependent on specific ROMs and can be a bit trial and error) or simply go with 3rd party folder backup apps.
Sounds like the folder existed since earlier versions of Android? The app could still be holding onto an old handle of the repo. But I would not count on the content continues to persist beside those in the mirror. There is not a simple way to change the repo path once set in order to respect Android's new lockdown of folder path. The only option might be to backup the mirror ➡️ then clear the app's data ➡️ redo setting up the app ➡️ once mirror is detected, tap option menu ➡️ MIRROR ➡️ PULL FROM MIRROR.
Glad to help. |
I restored app using oandbackupx due to phone failure.
When I created local repository folder, app deleted all notes that were available on app. Since folder was empty.
App should first confirm with user before deleting all notes
Instead app should have asked whether to create the files to sync folder with app or delete all notes, which makes more sense
The text was updated successfully, but these errors were encountered: