2023-12-03 12:23:49 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-07-08 13:22:26 -04:00
|
|
|
resticVersion="0.16.4"
|
|
|
|
resticprofileVersion="0.27.0"
|
2023-12-03 12:23:49 -05:00
|
|
|
|
2023-12-03 13:03:27 -05:00
|
|
|
mkdir /tmp/restic-install || exit 1
|
|
|
|
pushd /tmp/restic-install &>/dev/null || exit 1
|
2023-12-03 12:23:49 -05:00
|
|
|
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"
|
2023-12-03 12:59:51 -05:00
|
|
|
tar xvfz "resticprofile_${resticprofileVersion}_linux_amd64.tar.gz"
|
2023-12-03 12:23:49 -05:00
|
|
|
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
|
2023-12-03 12:53:13 -05:00
|
|
|
popd &>/dev/null
|
|
|
|
rm -rf /tmp/restic-install
|