Add backup/fetch-borg-latest.sh

pull/4/head
drunkendog 2023-08-25 23:05:43 +01:00
parent 72bbffede2
commit daa3eeb2a0
1 changed files with 6 additions and 0 deletions

View File

@ -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