Skip to content

Instantly share code, notes, and snippets.

@LevitatingBusinessMan
Last active August 31, 2024 08:36
Show Gist options
  • Select an option

  • Save LevitatingBusinessMan/7ebbba28fd11502630f040b909312ded to your computer and use it in GitHub Desktop.

Select an option

Save LevitatingBusinessMan/7ebbba28fd11502630f040b909312ded to your computer and use it in GitHub Desktop.
unison stuff
[Unit]
Description=Sync directory %i with unison
[Service]
ExecStart=bash -c 'unison -sshargs "-i $HOME/.ssh/unison" $HOME/%i ssh://[email protected]/%i -auto -batch -times'
Restart=no
[Unit]
Description=Sync directory %i with unison every 5 minutes
[Timer]
OnUnitInactiveSec=5min
OnBootSec=1min
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment