Last active
October 17, 2023 15:47
-
-
Save kisp/7774c780f27c834a82d97250fb733430 to your computer and use it in GitHub Desktop.
Setup unison sync with local configuration directory
This file contains 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
#!/bin/bash | |
set -euxo pipefail | |
cd "$(dirname "$0")" | |
export UNISON=$(pwd)/.unison | |
mkdir -p "$UNISON" | |
unison local-dir ssh://hostname//full/path/to/target-dir "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment