Last active
August 31, 2024 08:36
-
-
Save LevitatingBusinessMan/7ebbba28fd11502630f040b909312ded to your computer and use it in GitHub Desktop.
unison stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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