Skip to content

Instantly share code, notes, and snippets.

@untoreh
Created May 17, 2018 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save untoreh/dca994f6c2cee73992a97decc51859a3 to your computer and use it in GitHub Desktop.
Save untoreh/dca994f6c2cee73992a97decc51859a3 to your computer and use it in GitHub Desktop.
setup duplicacy cli binary on current host
prefix=/opt
alias=dup
osver=duplicacy_linux_x64_
ver=2.1.0
mkdir -p "$prefix$alias" "$prefix/bin"
wget -q "https://github.com/gilbertchen/duplicacy/releases/download/v$ver/$osver$ver" -O "$prefix/$alias"
chmod +x "$prefix/$alias/$alias"
ln -sr "$prefix/$alias/$alias" "$prefix/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment