![]() Registered Member ![]()
|
Hi, all.
I wiped my kde 4.13 desktop (kubuntu 14.04) and install kde5 base distribution (kde neon). I copy the old $HOME/.local/share/akonadi directory to my new home, but akonadi deleted all my notes when it started. It is very terrible. I have a backup of .local directory. How can I restore my notes from .local/share/akonadi?
Last edited by jackylau on Fri Aug 11, 2017 5:29 pm, edited 2 times in total.
|
![]() Registered Member ![]()
|
OK, I restore my notes from db. Here is what I did:
1) start a mysqld:
2) run mysql client:
3) run the following sql command:
The last command will list all knotes records, odd record is head only, even record with the body. 4) If you saw the head record but without the body record, mark down the pimItemId of head record (assume the id is 369), and run following sql command:
You will see the data of this record is like "1234_r23", this is the file name of this note. You can find it in /path/to/your/old/akonadi/file_db_data/. 5) The data of knotes is saved as rfc822 format in database. You can save it to a .eml file, and use kmail to view it. |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft