I seek the best way to merge two instances of same notebook that were identical till I had some synchronization problem (an old problem) and some divergence occurred between these instances. For some reason, one instance included the title in the note so that notes that are identical in meaning are not anymore exactly identical. I was looking for a very smart program that could merge those notes automatically, but I didn't found it and was not able to program it yet. If anyone have an idea. Please share it to me. I have about 5000 notes to be merged.
The last strategy I though of is to export both instances of the notebook as markdown, compare MD directory with meld. It allows to compare notes quite fast (compared to what I could do directly in joplin). I could see if two notes with the same name are identical in meaning and choose which one I should keep. For merging or deleting duplicated notes in joplin, I first search a phrase of the note in joplin in order to identify notes. This usually gives me two notes of each instance of the notebook and I can do the correct choice manually.
I thought, I initially could manage 5000 notes in about 2-3 weeks, but it seems that I would need maybe 5 month and now I looking for a better strategy!!!
Maybe I could do some step faster by using CLI or this kind of thing that I never used. Another possibility is that, I could live with those doublons without too much disturbance.
I'm open to any suggestions that may help me solve this problems.
I use joplin-desktop-2.3.5 on archlinux.