Skip to content

Instantly share code, notes, and snippets.

@kisp
Last active October 17, 2023 15:47
Show Gist options
  • Save kisp/7774c780f27c834a82d97250fb733430 to your computer and use it in GitHub Desktop.
Save kisp/7774c780f27c834a82d97250fb733430 to your computer and use it in GitHub Desktop.
Setup unison sync with local configuration directory
#!/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