See Wiki for more details.
Native Evernote backup does not save notebook/note structure.
With proper tagging and using Evernote Legacy's export to ENEX, this code allows you to save your Evernote notes in a local file system folder structure.
Note body is saved as HTML and attached files are extracted and saved to the folder as well.