diff --git a/backup/fetch-borg-latest.sh b/backup/fetch-borg-latest.sh new file mode 100644 index 0000000..8e4b8d1 --- /dev/null +++ b/backup/fetch-borg-latest.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +wget -4 -O /usr/local/bin/borg-linux64 $(curl -s https://api.github.com/repos/borgbackup/borg/releases/latest| jq -r '.assets | .[] | select(.name == "borg-linux64") | .browser_download_url') +chmod -v +x /usr/local/bin/borg-linux64 \ No newline at end of file