Added install script and fixed gitignore
This commit is contained in:
parent
a9c7c3921b
commit
de1dabd9ba
2 changed files with 19 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -0,0 +1,3 @@
|
|||
profiles.toml
|
||||
key
|
||||
excludes
|
16
install.sh
Normal file
16
install.sh
Normal 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
|
Loading…
Reference in a new issue