The desktop client has a "Export Notes" function that will export to HTML or their custom format. I use this to make a local backup occasionally.
For regular backups I use time machine which includes the user data folder: https://support.evernote.com/link/portal/16051/16058/Article...