How to backup your Evernote notes regularly

So you’ve saved a lot of notes into Evernote and you’re wondering how to back them up in case something goes horribly wrong. Some might call you paranoid, but a glitch in a client update could wipe out your notes (and because Evernote syncs to the cloud it would wipe out all your notes in the cloud too).

Even if you’re not worried about Evernote causing you a headache (and they certainly have a good record for data reliability), you should worry about yourself. There is no system in place powerful enough to protect you from accidentally or misguidedly deleting your own stuff. Once you drop the hammer on your own data, Evernote (like any other automated synchronization tool) isn’t going to judge you, it’s just going to carry out your orders and wipe your data.

So how can you backup your data?

Firstly, you will need to install the Evernote for Windows client onto your machine.

Now with that done, the easiest way is to create an export of all your notes in Evernote’s ENEX format, which will allow you to pick and choose which notes you want to recover when the time comes. This can be done from within the Evernote client, but we want to automate this so that it happens regularly and without human intervention.

This is where the Windows scheduler comes in. Simply schedule a task to run at whatever frequency you wish, and have it run the following command (you may need to adjust the path to your ENscript.exe file, depending on where Evernote is installed on your system):

"C:Program Files (x86)EvernoteEvernoteENScript.exe" exportNotes /q any: /f c:usersRobertdropboxmy_evernote_backup.enex

So bring up the Task Scheduler, and add a new task similar to the one below (click each screenshot to see full size):

General Settings
General Settings

In my case, I write the export file to my Dropbox folder so that the file gets automatically backed up to the cloud (providing yet another backup of this important data).

Keeping multiple backups

I have created a batch file  (to be called from the scheduler) which not only performs the export but which also maintains a specified number of backups (deleting old ones). Using this script you could, for example, schedule a weekly backup and keep 4 weeks  worth of backups available in Dropbox with older backups being deleted automatically.

Download Evernote Backup.bat and open it with a text editor (such as Notepad) to update the location of the Evernote installation (line 14), destination directory for backups (line 17) and the number of backups to keep (line 23) as appropriate for your installation.

:: Script Name : Export_evernote.bat
:: Description : Exports all notes to a backup, keeping the
::             : last <n> backups.
::      Author : Robert Taylor
::        Date : 29 August 2013

:: ---
:: Setup variables and parameters
:: ---

:: location of Evernote
set ENdir=C:\Program Files (x86)\Evernote\Evernote

:: location to write the backups to
set expdir=d:\dropbox\apps\evernote

:: The name of the directory to be created to contain the notebook exports (will be prefixed by the date/time)
set groupdir=evernote_backup

:: number of logfiles to keep
set /a keep=8

:: ---
:: Export Notes
:: ---

:: generate date and time varibles
for /f "tokens=1,2,3 delims=/ " %%i in ('date /T') do set thisdate=%%k%%j%%i
for /f "tokens=1,2 delims=: " %%i in ('time /T') do set thistime=%%i%%j
set prefix=%thisdate%_%thistime%

:: do the export
mkdir "%expdir%\%prefix%_%groupdir%"
for /F "tokens=1 delims=" %%i in ('"%ENdir%\enscript.exe" listNotebooks') do "%ENdir%\ENScript.exe" exportNotes /q "notebook:\"%%i\"" /f "%expdir%\%prefix%_%groupdir%\%%i.enex"

:: ---
:: Delete old logs
:: ---

:: make list of files
type NUL > explist.dat
for /F "tokens=1,2 delims=[] " %%i in ('dir /B *%groupdir% ^| find /N "%groupdir%"') do echo  %%i = %%j>>explist.dat

:: count total number of files
for /F "tokens=1 delims=" %%i in ('type explist.dat ^| find /C "%groupdir%"') do set filecnt=%%i

:: Create a list of files to delete
set /a todelete=%filecnt% - ( %keep% )

type NUL>dellist.dat
for /L %%i in (1,1,%todelete%) do find " %%i = " explist.dat >> dellist.dat

:: Delete the old files
for /F "tokens=3 delims= " %%i in ('find "%groupdir%" dellist.dat') do rmdir /S /Q %%i

:: Remove temporary working files
del /Q explist.dat
del /Q dellist.dat


Change the scheduler configuration you added earlier to run the bat file rather than the ENscript executable. As an example:


As an aside, running a bat file from the Windows Scheduler has the annoying effect that a DOS window suddenly appears in the middle of the screen for the duration of the backup. If you want to avoid this, see my related post Starting a Batch (DOS) file minimized

23 thoughts on “How to backup your Evernote notes regularly

Add yours

      1. Thanks Robert, I downloaded the script. It throws back errors when run as a task (after I made the path corrections for ENdir and expdir). When I run the batch script from the cmd I get the output below. I don’t know if this is the right way of troubleshooting it.


        C:UsersroliverDropboxEvernote>set ENdir=C:Program FilesEvernoteEvernote

        C:UsersroliverDropboxEvernote>set expdir=C:UsersroliverDropboxEvernoteF


        C:UsersroliverDropboxEvernote>set enexname=evernote_backup

        C:UsersroliverDropboxEvernote>set /a keep=4

        C:UsersroliverDropboxEvernote>for /F “tokens=2,3,4 delims=/ ” %i in (‘date /

        T’) do set thisdate=%k%j%i

        C:UsersroliverDropboxEvernote>set thisdate=20133008

        C:UsersroliverDropboxEvernote>for /F “tokens=1,2 delims=: ” %i in (‘time /T’

        ) do set thistime=%i%j

        C:UsersroliverDropboxEvernote>set thistime=0507

        C:UsersroliverDropboxEvernote>set prefix=20133008_0507

        C:UsersroliverDropboxEvernote>cd C:UsersroliverDropboxEvernoteFred

        C:UsersroliverDropboxEvernoteFred>ΓÇ£C:Program FilesEvernoteEvernoteENS

        cript.exeΓÇ¥ exportNotes /q any: /f C:UsersroliverDropboxEvernoteFred20133


        The filename, directory name, or volume label syntax is incorrect.

        C:UsersroliverDropboxEvernoteFred>type NUL 1>explist.dat

        C:UsersroliverDropboxEvernoteFred>for /F “tokens=1,2 delims=[] ” %i in (‘di

        r /B *evernote_backup.enex | find /N “evernote_backup.enex”‘) do echo %i = %j 1


        File Not Found

        C:UsersroliverDropboxEvernoteFred>for /F “tokens=1 delims=” %i in (‘type ex

        plist.dat | find /C “.enex”‘) do set filecnt=%i

        C:UsersroliverDropboxEvernoteFred>set filecnt=0

        C:UsersroliverDropboxEvernoteFred>set /a todelete=0 – ( 4 )

        C:UsersroliverDropboxEvernoteFred>type NUL 1>dellist.dat

        C:UsersroliverDropboxEvernoteFred>for /L %i in (1 1 -4) do find ” %i = ” ex

        plist.dat 1>>dellist.dat

        C:UsersroliverDropboxEvernoteFred>for /F “tokens=3 delims= ” %i in (‘find ”

        .enex” dellist.dat’) do del /Q %i

        C:UsersroliverDropboxEvernoteFred>del /Q explist.dat

        C:UsersroliverDropboxEvernoteFred>del /Q dellist.dat



      2. When the script was added to the article the quotes on line 36 have been turned into “smart quotes” – which broke the script (in your output you can see “ΓÇ£” and “ΓÇ¥”).

        I’ve updated the script above, so it should work now. Just double check when you copy the script into a bat file that line 36 has quotes around %ENdir%ENScript.exe and not any funny characters!


      3. The script successfully runs and create a file in the right place with the right extension. My next step is to figure out a way to see whether it has created a viable backup that I can restore. Thanks!


  1. The backup file that is created can be imported into Evernote from the “File” menu. All notes will be placed into a new notebook, making it simple to perform a test import and then delete them. I’ll update the article with some screenshots when I have the time.

    Unfortunately, the drawback of using ENscript to backup your notes is that Evernote doesn’t store the detail of which notebook a note was in. I’m looking at writing a more complex bat file that would export each notebook individually, then zip them all up into a single file – but it’s not a deal breaker for me as I only have about 5 notebooks (I actually use a hierarchy of tags to categorize my notes .. maybe I should blog about it!).


  2. I have updated the script to create a folder and then export each notebook to an individual file within that folder. This will make it easier to recover the contents of a single notebook.

    I have also removed the code listing from the article and replaced it with a download link to make life easier.


  3. Hi Robert, I just implemented your script. One thing, it does not handle stacked notebooks completely properly, that is, the script generates an error for the “parent” notebook that the “child” notebooks are stacked in. The stacked notebooks are backed up though so that is a plus.

    I’m taking a new approach to task management using Agile Results and this new process direction pushed me over the edge to decided that regular backups were in order. (that and probably more importantly a post yesterday on the Evernote Google+ circle about a user that experienced some data loss. Yikes!)

    Thanks for putting this together!



      1. Hi Robert,

        Here is the link to the starter post on Asian Efficiency:

        I’ve been a GTD’r for longer than I can remember and have always experienced a bit of resistance. When I ran across the Agile Results blog the Asian Efficiency folks posted (great productivity blog by the way) I was very interested. So I’m going to make a run at this for the year of 2014. Best thing is that it combines the best productivity bang from GTD of inbox/stuff processing with an agile approach. We’ll see…

        I currently use ToodleDo ( as my GTD solution for task tracking and just I implemented a bridging service between Evernote and ToodleDo called Task Clone ( The benefit here is that I can generate tasks in Evernote as I’m making notes and have them replicate (under my control) to ToodleDo just by adding a tag to the note I want to capture the tasks from. Once the appropriate tag is added any line of text that has a check box on it is sent to ToodleDo (or one of many other task management services) with the content of the line along with a hyperlink back to the Evernote note that the task came from. (short YouTube demo of TaskClone

        All of my notes stay in Evernote and now I have tasks tied to them without having to do double entry. Evernote’s task management is much to simple for my needs, Toodledo’s notes system is very weak, so now I’ll have the best of both.

        Thanks for sharing The Secret Weapon, I’ll take a look at that.


        note: I’m just an end user am not affiliated with any of the products or services mentioned here,


  4. I am using Backupery for backing up my Evernote on a hard drive, works good so far. I am pretty sure that it makes the same you have described in the article.


  5. Excellent!! I was just looking for this, and you have it ready!
    Just changed the :

    :: location of Evernote
    set ENdir=C:users%username%appdatalocalappsEvernoteEvernote



    1. Since upgrading to EN6, I have the same issue. It appears that the scripting command provided by Evernote is broken in the latest version!!

      I’ve raised ticket #1575585 with Evernote support


      1. In EverNote 6.0.5 everything works fine.

        I’d like to ask you if it is possible to exclude one notebook (called “Tymczasowy”) from backup?


  6. I found the same when trying out the beta and mentioned it on the Forum post about the beta but in my experience Evernote responses to tickets or queries about issues is glacial to non-existent.

    I had issues with syncing a couple of years ago and opened a ticket that got no response. The issue was eventually resolved with an update but my ticket is now open 2 years with no official response so I am not hopeful that it will get resolved quickly.

    Hopefully it will get fixed soon though


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

Up ↑

%d bloggers like this: