Created
November 27, 2024 05:17
-
-
Save captainpete/0f2f917db9718c40e3a38f34e2513261 to your computer and use it in GitHub Desktop.
Backup Evernote to Tarsnap on MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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