{"id":1246,"date":"2018-08-10T08:20:57","date_gmt":"2018-08-10T13:20:57","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1246"},"modified":"2018-08-10T08:20:57","modified_gmt":"2018-08-10T13:20:57","slug":"restic-updates","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/restic-updates\/","title":{"rendered":"Restic updates"},"content":{"rendered":"
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<\/p>\n
\"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:\"<\/p>\n
\r\nRESTIC_TAG_LATEST=$(curl --silent "https:\/\/api.github.com\/repos\/restic\/restic\/releases\/latest" | grep -Po '"tag_name": "v\\K.*?(?=")')\r\necho "Downloading and installing restic v$RESTIC_TAG_LATEST ..."\r\nRESTIC_URL=https:\/\/github.com\/restic\/restic\/releases\/download\/v${RESTIC_TAG_LATEST}\/restic_${RESTIC_TAG_LATEST}_linux_amd64.bz2\r\nsudo curl -L --silent ${RESTIC_URL} | bunzip2 > \/usr\/local\/bin\/restic\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"If you are used to the way how easy rclone updates with a one-liner then this may help with restic<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[99],"tags":[],"class_list":["post-1246","post","type-post","status-publish","format-standard","hentry","category-restic"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1246"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1246\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}