Install restic on Centos 7

I have couple vps that use Centos 7 . Latest vps server for learning management system using moodle as backend. As the file grow I also need to set backup. Other Centos server are using restic for backup software with target to wasabi cloud storage.

The problem is restic refuse to install in Centos 7.6 (maybe because it’s lxc technology) but finally I got restic installed.

Here’s my documentation :

Install newer git

yum -y erase git
yum -y install
yum -y install git236

Install Golang

rpm –import

curl -s | tee /etc/yum.repos.d/go-repo.repo

yum install golang

Get restic source and compile

tar xvf restic-0.10.0.tar.gz
cd restic-0.10.0/

mkdir /root/tmp

export TMPDIR=~/tmp/

go run build.go

mv ./restic /usr/bin/

Upgrade restic to last version

restic self-update

check it

restic version
restic 0.12.0 compiled with go1.15.8 on linux/amd64

done, I can continue with wasabi section now 🙂