Added install script and fixed gitignore

This commit is contained in:
Eric Renfro 2023-12-03 12:23:49 -05:00
parent a9c7c3921b
commit de1dabd9ba
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF
2 changed files with 19 additions and 0 deletions

3
.gitignore vendored
View file

@ -0,0 +1,3 @@
profiles.toml
key
excludes

16
install.sh Normal file
View file

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