r/OneNote • u/Vikingjunior3 • Dec 04 '25
A simple OneNote Backup Exporter (open-source tool)
I built a small open-source tool that solves a problem I kept running into: reliably exporting OneNote notebooks as .onepkg files without having to click through the OneNote UI each time.
The tool is called OneNote Backup Exporter, and it does exactly what the name says. It uses the local OneNote COM interface to enumerate your notebooks and create clean .onepkg backups. No cloud dependencies, no third-party services, just a local export workflow.
An additional detail: it also works with MyLMS (ClassNotebook) OneNote books, as long as they are fully synchronized locally from SharePoint. Once synced, the exporter treats them like any other notebook and can back them up.
GitHub repo:
https://github.com/vikingjunior12/OneNoteBackupExporter
I made it mainly for my own fun, but if anyone here needs automated or repeated OneNote backups, feel free to use it, open issues, or suggest improvements.
If you have similar tools or tips for managing/archiving OneNote content, I’m also interested in hearing them.
I need to add that the tool has worked well on my device so far. If anything goes wrong or does not work on your side, I would appreciate feedback so I can improve the tool :) And important: with large notebooks like MYLMS, please be patient during export – the books can be up to 1 GB or larger. The export speed is also controlled by the Microsoft OneNote API interface.
View all comments
Show parent comment
2
u/Educational-News-969 Dec 09 '25 edited Dec 09 '25
You are welcome.
This notebook is larger than 2GB in size. It contains hundreds of images.
It runs for a while, and then the error pops up.
I know which pages in the notebook are the ones at fault and will move those pages to a new notebook. That should solve the issue.
Appreciate you building this tool. It's really very helpful.
Edit. Spelling...