Evernote Backup Automation

As I mentioned in a previous post, I am in the process of "Going Paperless." I have decided to use Evernote as my digital repository. (I love the tags!!) One important requirement of my new information repository system is that there has to be a way to back up my data. Unfortunately, Evernote does not include a built-in backup option; however, there is a command line utility to export notes. Since I am semi-dangerous with scripting, I decided to write a batch file to create a consistent and automatic backup system.

Git the script

The script does the following:

  1. Checks the registry to make sure Evernote is installed
  2. Gets the Evernote installation path from the registry
  3. Create a folder based on the day and time
  4. Enumerates the notebooks
  5. Separately exports each notebook
  6. Compresses each export
  7. Adds a note to each notebook with a status of the export

The exportNotes command exports notes based on a query into a new notebook. This means that if all notebooks are exported in one shot, the notebook organization is lost. By exporting one notebook at a time, the notebook structure can be recovered as well as the notes. So, if something catastrophic where to happen, time is not wasted reorganizing thousands of notes.

To make the backup happen automatically, I use the Windows Task Scheduler to run the script every day at 1800R.

Please let me know if you find this information useful or have any suggestions on how to improve it.


Developer Advocate

    Find more about me on:
  • linkedin
  • twitter
  • youtube
This entry was posted in General and tagged , , , . Bookmark the permalink.

2 Responses to Evernote Backup Automation

  1. John in Michigan, USA says:

    Thanks for sharing the script. One thought: Evernote’s export feature has certain limits. From https://help.evernote.com/hc/en-us/articles/209005557 “The “Created” and “Modified” dates of each note are not preserved. Instead, these dates reflect the date and time when the note was imported.” and “Stacks and note links are unique to your account and can’t exist outside of your account. This means that you’ll have to re-create these after you’ve imported your notes back into your account.”

    There are some other subtle aspects to backup/restore that are fully discussed in this fine community post which I highly recommend.


    • Thanks for sharing John! There just is not a perfect method. Hopefully, they will add a “true” backup option at some point. It seems that there is a lot of interest in such.

Leave a Reply

Your email address will not be published. Required fields are marked *