This repo provides easy install and sync utils for my obsidian journal.
It uses crontab alongside git-crypt and git-lfs to perform automatic syncing of journal contents to this repository, encrypting the contents of the journal pages with a key, and storing any media files separately on git large file storage (LFS).
This repo can be adapted for your own journal by:
- forking the repo
- replacing the
/journal
directory with your own obsidian vault - replacing the keyfile with your own
- initializing git-crypt on the fork.
# clone the repo
git clone git@github.com:mrhwick/journal.git
# run installer
cd journal
./scripts/install.sh
This installer script automatically:
- adds the git-crypt tool using
brew install git-crypt
- Checks for a key file named
keyfile
and configures git-crypt encryption to use that key.- This step will fail if the keyfile is not the key initially used to encrypt the contents of my journal.
- Adds necessary extension config for the git-lfs to work with git-crypt.
- adds a crontab for every 20 minutes to run a sync with github to distribute changes in journal state or content.