From daa3eeb2a077173dc87168f3b064cfc200b65a2f Mon Sep 17 00:00:00 2001 From: drunkendog Date: Fri, 25 Aug 2023 23:05:43 +0100 Subject: [PATCH] Add backup/fetch-borg-latest.sh --- backup/fetch-borg-latest.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 backup/fetch-borg-latest.sh 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