mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-16 10:16:37 +00:00
16 lines
298 B
Bash
Executable File
16 lines
298 B
Bash
Executable File
#! /bin/bash
|
|
set -ex
|
|
|
|
VERSION="$1"
|
|
ARCH="$2"
|
|
|
|
RESTIC_NAME=restic_${VERSION}_linux_${ARCH}
|
|
|
|
# Download
|
|
curl -L -o restic.bz2 "https://github.com/restic/restic/releases/download/v${VERSION}/${RESTIC_NAME}.bz2"
|
|
|
|
# Install
|
|
bunzip2 -v restic.bz2
|
|
mv restic /usr/local/bin/
|
|
chmod +x /usr/local/bin/restic
|