- version 2.8.8
- operating system Windows 10
Hi, I started Joplin by creating notes into a single profile. I set up OneDrive as the sync target.
Then I realized I wanted my notes to be separated by concern (home life, business 1, business 2, etc).
I then created 2 more profiles (Default being the current one, plus 2 more for the 2 businesses). I exported notes accordingly so I started out basically with 3 copies of the same profile... or so I thought.
I then went back and started deleting irrelevant notes from the respective profiles, intending to have just the relevant notes in each profile. I unfortunately started with deleting notes for the meatiest profile away from the less meaty profile. I thought I was just deleting notes from a specific profile but when I looked at the other profiles I discovered that those notes were being deleted throughout all profiles! All the profiles had the same data!! So I deleted a ton of very valuable notes!
I did some digging and found that (thank goodness) there appears to be a Note History feature and many notes are still in the ether located at "C:\Users\USERNAME\OneDrive\Apps\Joplin". There are a lot of md files in there, and when I opened up a few, I can see content from notes that were deleted.
However, these md files are not standard, and have odd formatting as follows:
id: 0a4a56e02bae4c9a3510ab23413afac0
parent_id: 859bd8dc7ef14c0db2e677735a34e3f6
item_type: 1
item_id: 55d805eef1ff41dd98ecfc2f3570a062
item_updated_time: 1663211544309
title_diff: ""
body_diff: "[{"diffs":[[0,"lHost>\\n\\n"],[1,"...CONTENT OF MD FILE..."]],"start1":375,"start2":375,"length1":8,"length2":424}]"
metadata_diff: {"new":{},"deleted":}
encryption_cipher_text:
encryption_applied: 0
updated_time: 2022-09-15T03:15:00.764Z
created_time: 2022-09-15T03:15:00.764Z
type_: 13
I've read that Joplin modifies the md files to accept additional functionality so I believe I understand why it's formatted this way, however, I've tried to import the individual md files and md directories, both with and without frontmatter, and Joplin imports this odd formatting verbatim, and the note title is the hash "id" parameter above.
At this point I just need all of my original deleted data back and I can reorganize my profiles properly. How can I get the saved copies of the md files back in my Joplin so I can save properly? Or is there a tool out there that can take these modified MD files and give me back a non-Joplin-modified MD file so I can manually add the MD content back in?
Of course, I will be backing up properly and using profiles in the right way from here out-- but I just need to fix this before proceeding.
Any direction please help!! I've invested a ton of time into creating beautiful and helpful notes that are now POOF gone.
THANK YOU