zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.52k stars 1.88k forks source link

Migrate from OneNote to Trilium #1013

Closed DimitriyPro closed 3 years ago

DimitriyPro commented 4 years ago

So... There is a question - how to do it? There is a similar program with this feature: https://github.com/laurent22/joplin Did you know a way to migrate on Trilium?

zadam commented 4 years ago

There isn't any specific OneNote import.

Trilium supports importing (zipped) directory structure with HTML/Markdown files with images etc. But I don't know if OneNote can export such directory structure.

DimitriyPro commented 4 years ago

Thank you @zadam But I think there is a way to use already done solution: https://github.com/laurent22/joplin/blob/e399474b4e2e2dffc625a0414232031ed290b81c/ReactNativeClient/lib/import-enex-md-gen.js https://github.com/laurent22/joplin/blob/e399474b4e2e2dffc625a0414232031ed290b81c/ReactNativeClient/lib/import-enex.js Import from Evernote (Evernote can import from many other programs for note taking). We have solution for Evernote but do you know how to integrate it to Trilium? I have some skills in web-programming but not in so complecated projects. Thank you!

zadam commented 4 years ago

ENEX is already supported as an import format so if you have ENEX, just use import dialog ...

DimitriyPro commented 4 years ago

Wow! Brilliant! But I can't find Import page on https://github.com/zadam/trilium/wiki

zadam commented 4 years ago

Just right click on a note where you want to import the ENEX:

 

meichthys commented 4 years ago

@DimitriyPro There is this script as well. I used a slightly modified version of it a few months ago to migrate from Onenote to Trilium. Three were a few side-effects, but nothing that couldn't be cleaned up once imported into Trilium.

DimitriyPro commented 4 years ago

@meichthys thank you! It's very useful script!

meichthys commented 4 years ago

@DimitriyPro If the above links helped, could you mark this issue as resolved?

tejasvi commented 4 years ago

After trying multiple methods, I can attest to the superior conversion using Evernote's .enex as the intermediary. I had reasonably complex note structures, and the translation has been much better than I could expect.

yllekz commented 3 years ago

Putting in a +1 for looking into a cleaner way to import OneNote content. I've been manually migrating pages, but it very quickly became clear that it would be cumbersome; a lot of formatting either gets changed or doesn't paste in correctly.

OneNote on the desktop has a decent amount of export options, including the .mht format which is html-adjacent. Perhaps an import utility can be leveraged by that?

meichthys commented 3 years ago

@yllekz If you're willing to put in a bit of work, this script should help out significantly. I used it with some modifications to export Onenote to HTML and then import into Trilium.

meichthys commented 1 year ago

To follow up here, I've done migrations from Onenote to Trilium a few times now and the best method (by a considerable margin) is to first export Onenote to Legacy Evernote. Here's the steps:

Migration Notes

Prep Onenote notes for best compatibility:

Migration Procedure

Import into Evernote from OneNote:

If exporting all sections at a time, they will not be grouped in folders - they will all be added to a single folder, but the order will be kept, so you can re-group into folders after importing to Trilium

Export from Evernote

Cleanup enex file (optional)

If the Onenote header (that is at the top of each Onenote page) is not desired, you can use the following regex to remove them in a text editor like VsCode:

Import into Trilium

Other importing notes:

meichthys commented 1 year ago

@zadam I'm not sure if it would be helpful or not, but the above steps may be worth including in the Wiki? https://github.com/zadam/trilium/wiki/Evernote-import

zadam commented 1 year ago

I've added the content, also added you as a collaborator, so you can update the wiki if you wish. Feel free to make changes, I've just pasted it there.

Beexx commented 1 year ago

Hello, The link to download Evernote Legacy no longer exists. The page may have been deleted by Evernote. I was able to download the Evernote Legacy installer though, by fetching a cached version on https://web.archive.org. You might want to try the same, until Evernote decides to publish it again... https://web.archive.org/web/20230327110646/https://help.evernote.com/hc/en-us/articles/360052560314 Cheers,

meichthys commented 1 year ago

Thanks for reporting. Don't count on Evernote publishing it again! I'll add the web archive link to the wiki.

swissbuechi commented 2 months ago

Windows: https://cdn1.evernote.com/win6/public/Evernote_6.25.3.9348.exe

Mac: https://cdn1.evernote.com/mac-smd/public/EvernoteLegacy_RELEASE_7.14.1_458325.zip

Check sum (md5): 6f77a09b933ad0b895b10fad137dcee1 Evernote_6.25.3.9348.exe 5feefa52d54ac6ef09bd9017814a17dd EvernoteLegacy_RELEASE_7.14.1_458325.zip

The web page: https://web.archive.org/web/20230326100256/https://help.evernote.com/hc/en-us/articles/360052560314-Install-an-older-version-of-Evernote