git clone https://github.com/notflip/restic-backup-for-docker.git restic
cd restic
cp restic.env.example restic.env
# Configure restic.env
cd
apt install bzip2 -y
curl -LO https://github.com/restic/restic/releases/download/v0.18.0/restic_0.18.0_linux_amd64.bz2
bzip2 -d restic_0.18.0_linux_amd64.bz2
chmod +x restic_0.18.0_linux_amd64
sudo mv restic_0.18.0_linux_amd64 /usr/local/bin/restic
./restic-cmd.sh init` # to init new repository (make sure the last segment of the url is okay in the .env)
./restic-backup.sh # to test
./restic-cmd.sh snapshots # to test after backing up