aedict icon indicating copy to clipboard operation
aedict copied to clipboard

UMN: sync to custom server

Open kuroi-hayabusa opened this issue 6 years ago • 7 comments

I messed up my Notepad. I could not find the db file in the advised folder (…/sk.baka.aedict3/files/umn/dbfiles/db). I searched all over all the android storage folders, trying from the PC or directly from the phone. Then I moved back to Stored Type “File-based” and, as advised, I lost data.

Now I am trying to get familiar with the new UMN system back up. I still do not see where the files are stored: the advised folder only contains the dictionary files.

I uninstalled and re-installed back the app with the same result.

Aedict version is 3.50.7 and the phone is oneplus 5.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

kuroi-hayabusa avatar Oct 08 '18 21:10 kuroi-hayabusa

Hi, I'm sorry for your data loss. The dictionary files may be private to the application, and hence Android may actually prevent to see them, however ridiculous that sounds. The UMN back up is actually not a back up, but a full sync with Aedict Online. Please see this for more information: https://mvysny.github.io/aedict-blog/Aedict-Sync/

mvysny avatar Oct 10 '18 18:10 mvysny

Hi, Actually I see some files which seems to be the dictionary ones, but I am not interested in those. It is my notepad file what I can not find. (the "show hidden files" Android option is enabled).

I am not sure if I got this: is there any way I can back up my date without synchronizing with Aedict Online? I mean something like copying the db file somewhere and get it back when needed? Regards

kuroi-hayabusa avatar Oct 13 '18 09:10 kuroi-hayabusa

With UMN, everything is packed in one database file; I don't remember exactly how it's called, wild guess would be userdata.db. if you're interested, I can check that up for you.

You're right, back-up is impossible with a database. However you can set up sync to your own server if you'd like. Please see UMN Proxy Server if you're interested. If you would like to go with this solution, I can prepare a manual on how to do that.

mvysny avatar Oct 13 '18 13:10 mvysny

Yes, could you please check the location and name of the file. I am curious, I modify the notepad as a test, but I cannot find any updated folder/file in the phone? Also guidelines on sync'ing it the would be much appreciated.

kuroi-hayabusa avatar Oct 15 '18 12:10 kuroi-hayabusa

Actually the location of the database file varies; for me it's /data/user/0/sk.baka.aedict3/files/UMN/dbfiles/ and there's a file simply named db. It's not visible because it's private to aedict so that rogue apps can't read it. You can however use adb or Android studio to read the file. You can read more info here: https://groups.google.com/forum/?nomobile=true#!topic/aedict-users/DyWrbwCv9m8

mvysny avatar Nov 20 '18 15:11 mvysny

Syncing to multiple servers may be tricky. Let me think more about it.

mvysny avatar Nov 20 '18 15:11 mvysny

Related feature request: https://gitlab.com/mvysny/umn/issues/3

mvysny avatar Nov 20 '18 16:11 mvysny