From de1dabd9ba24117e13755f3ee6adcbb5c1fccd15 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sun, 3 Dec 2023 12:23:49 -0500 Subject: [PATCH] Added install script and fixed gitignore --- .gitignore | 3 +++ install.sh | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 install.sh diff --git a/.gitignore b/.gitignore index e69de29..91e9281 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +profiles.toml +key +excludes diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..6486387 --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +resticVersion="0.16.2" +resticprofileVersion="0.24.0" + +mkdir /tmp/restic-install +pushd /tmp/restic-install &>/dev/null +wget "https://github.com/restic/restic/releases/download/v${resticVersion}/restic_${resticVersion}_linux_amd64.bz2" +bunzip2 "restic_${resticVersion}_linux_amd64.bz2" +wget "https://github.com/creativeprojects/resticprofile/releases/download/v${resticprofileVersion}/resticprofile_${resticprofileVersion}_linux_amd64.tar.gz" +tar "xvfz resticprofile_${resticprofileVersion}_linux_amd64.tar.gz" +rm LICENSE README.md "resticprofile_${resticprofileVersion}.tar.gz" +chown root:root restic* +chmod 755 restic* +mv "restic_${resticVersion}_linux_amd64" /usr/local/bin/restic +mv resticprofile /usr/local/bin/resticprofile