Restic updates
wordpress meta
title: 'Restic updates'
date: '2018-08-10T08:20:57-05:00'
status: publish
permalink: /restic-updates
author: admin
excerpt: ''
type: post
id: 1246
category:
- restic
tag: []
post_format: []
title: 'Restic updates'
date: '2018-08-10T08:20:57-05:00'
status: publish
permalink: /restic-updates
author: admin
excerpt: ''
type: post
id: 1246
category:
- restic
tag: []
post_format: []
If you are used to the way how easy rclone updates with a one-liner then this may help with restic also. Found it here: https://github.com/restic/restic/issues/1930
"just wanted to share a simple 4-line script to download and install the latest release of restic from Linux shell using cURL to /usr/local/bin:"
RESTIC_TAG_LATEST=$(curl --silent "https://api.github.com/repos/restic/restic/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")')
echo "Downloading and installing restic v$RESTIC_TAG_LATEST ..."
RESTIC_URL=https://github.com/restic/restic/releases/download/v${RESTIC_TAG_LATEST}/restic_${RESTIC_TAG_LATEST}_linux_amd64.bz2
sudo curl -L --silent ${RESTIC_URL} | bunzip2 > /usr/local/bin/restic