Skip to content

Instantly share code, notes, and snippets.

@ErikFontanel
Last active January 26, 2026 08:16
Show Gist options
  • Select an option

  • Save ErikFontanel/17e9c02a094063099fdf7921bab06d3a to your computer and use it in GitHub Desktop.

Select an option

Save ErikFontanel/17e9c02a094063099fdf7921bab06d3a to your computer and use it in GitHub Desktop.
Jotta-cli on synology

Jotta-cli on Synology NAS

Setup

  1. Add jottad as a user and group in the web interface
  2. Download jotta-cli
  3. sudo tar -xf jotta-cli_xxx_linux_arm64.tar.gz
  4. sudo mv etc/jottad /etc/
  5. sudo mv usr/share/jottad /usr/share
  6. sudo mv usr/bin/jotta* /usr/bin
  7. sudo /usr/share/jottad/install.sh
  8. sudo chown -R jottad:jottad /var/lib/jottad/

Starting

Start with sudo systemctl start jottad

Stopping

Stop with sudo systemctl stop jottad

Usage

  • Limit jottad from eating up all resources:
    jotta-cli config set slowmomode 1
  • Add folders to watch:
    jotta-cli add /volume1/Erik/mbp.sparsebundle
  • Pause jotta-cli for 8h: jotta-cli pause 8h
  • View progress: jotta-cli observe

Automatic start/stop at midnight/morning

In the Synology web interface go to Control Panel -> Task Scheduler and add a task for user jottad:

General Schedule Task Settings
Name: description Run on: Daily Run command:
User: jottad Time: 07:00 /bin/jotta-cli pause 17h
#!/bin/sh
JOTTA=$1
sudo systemctl stop jottad
sudo tar -xf "$JOTTA"
sudo rm -rf /etc/jottad
sudo rm -rf /usr/share/jottad
sudo rm -rf /usr/bin/jotta*
sudo mv ./etc/jottad /etc/
sudo mv ./usr/share/jottad /usr/share
sudo mv ./usr/bin/jotta* /usr/bin
sudo chmod +x /usr/bin/jotta*
sudo systemctl start jottad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment