Skip to content

Instantly share code, notes, and snippets.

@captainpete
Created November 27, 2024 05:17
Show Gist options
  • Save captainpete/0f2f917db9718c40e3a38f34e2513261 to your computer and use it in GitHub Desktop.
Save captainpete/0f2f917db9718c40e3a38f34e2513261 to your computer and use it in GitHub Desktop.
Backup Evernote to Tarsnap on MacOS
#!/bin/sh
# initial run instructions:
#
# brew install evernote-backup
# evernote-backup init-db
# sync to latest
evernote-backup sync
# export notes as individual enex files
mkdir -p Evernote
evernote-backup export --single-notes --no-export-date --overwrite Evernote
# snapshot backup
tarsnap -c -v --print-stats \
-f Evernote`date "+%Y%m%d"` \
Evernote
# remove export
rm -fr Evernote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment