File Watching

You might want to have your files automatically upload when they're updated completely hands-off. You can do this by running the jot watch ... command as a daemon.

Manually

You can manually run the watch command and your uploads will be completely automated as long as it stays running.

jot watch ~/jot/MyNotes/

Then, every time you update a file in your workdir, the client will upload them to the server.

Systemd Service

Alternatively, a systemd service would allow it to start upon login and be completely hands-off.

Create the following service file at $HOME/.config/systemd/user/jot-watch.service:

[Unit]
Description=Jot Watch Daemon

[Service]
ExecStart=%h/.cargo/bin/jot watch %h/jot/MyNotes

[Install]
WantedBy=default.target

Replace the binary and workdir paths as necessary.

Then start and enable the service.

systemctl start --user jot-watch
systemctl enable --user jot-waatch

Now it should start every time you login and any changed files should be uploaded immediately.