-
Notifications
You must be signed in to change notification settings - Fork 98
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
How to handle storedata files? #46
Comments
The error seems to indicate something wrong with the database file itself, it cannot be opened. If possible, can you share the file and I can try to take a look. Email if you don't want to share publicly. |
Also, I would check if permissions/ownership is an issue to accessing your file! Try running as root if so. |
Hi @ydkhatri , thx for taking the time!! Unfortunately What do you mean by saying
I have There is a lot of private stuff going on in these files so i can't upload them unfortunately. I also tested a backup file (some months old) without any success too. |
I just created some Notes in the Mac Notes app and tried to run
which returned the same error. I also tried to use the binaries like described in https://apple.stackexchange.com/questions/355932/mac-os-x-notes-moved-to-exchange-disappear?newreg=3cc929e5bedf4641a2ad5ac7fd89f350#comment575718_355998 but without any luck. I lost my notes and was quite shocked how many people tried to solve the same problem as i do now. I really appreciate all the effort. But i am wondering why none of the solutions works for me 🤪 |
OK, it seems there was a bug in the code, which affected macos/linux. I just fixed it, now the db should open correctly . Just download and replace the file common.py (mac_apt/plugins/helpers/common.py) with the new one from the repo. |
A little speechless, thanks!! Now it's working (using But there is a little but: i was searching kinda blindly for a way to recover my notes and i considered every possible option out there while trying to figure out my own custom solution in parallel. The CSV file which has just been created contains all the notes from the database (which i assume is correct ) but i hoped to just get the notes which have been shown the last time i opened my Notes app. I already saw some notes duplicated 2000 times and more in the database. It seems like a new version of a note has been saved for every little change (key press) i made 😱 So i finally successfully created an SQL query to fetch the latest version of each note. So if anyone should stumble in here, please try out this query to receive the latest version of all notes ever stored in the corresponding database:
Please be aware that this query should work with a V7 version of the notes database (storedata). The result contains the title, body and folder name of a note. And the query does not pretend to be beautifully written but it works ;) I used Now it's up to me to restore the notes. Again, thx @ydkhatri !! |
case closed |
The query you used is very similar to what the script uses, except there is no grouping, as for forensics we want to see all the data (edits). In addition, the data in the notes is not always a flat list or spreadsheet, its more like a tree, when things like attachments are also included. So, I flatten the tree by repeating those columns , just like an sql join query will match one item on left with many on right, so you end up with a lot of repeated data. |
I just lost all my notes accidentally and i tried to recover them using this tool. Unfortunately i wasn't able to make it work. I tried to run
without any luck:
I went through the installation process described in https://drive.google.com/uc?export=download&id=1JEYlq_3WX6DgaLgm_LZ6jzPRT4iEg5Ge. The only exception: i am using
pyenv
(=>pyenv shell 3.7.9
) instead ofpython3
.NotesV7.storedata has been taken from a system running Mac OS Catalina.
Do you have any idea how to solve this problem?
The text was updated successfully, but these errors were encountered: