A simple wrapper around HedgeDoc CLI to backup all notes to a local git repository (and optionally pushing to a remote one).
This creates a versioned history of the notes taken at specific intervals, independently from the HedgeDoc internal versioning.
- Install dependencies. Usually
git
,unzip
, andjq
.- The commands usually spits out errors about what is missing usually. Read the errors, it's free! :P
- Clone recursively this repository
- Set your options to
config.sh
. - Login the first time by running
./login.sh --email user@whatever.tld
. See the CLI documentation for further authentication mechanisms. - Add
do.sh
to a cronjob task.- If you use the
git push
automatism, be sure that your system can authenticate to the git server without passwords (e.g. the ssh keys are setup correctly)
- If you use the
- Profit.
The code on this repository is licensed under the GNU Public License v3, see LICENSE to know more.