Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

15,555

Downloads of v 0.16.4:

1,520

Last Update:

05 Feb 2024

Package Maintainer(s):

Software Author(s):

  • Alexander Neumann

Tags:

restic backup file

Restic

This is not the latest version of Restic available.

  • 1
  • 2
  • 3

0.16.4 | Updated: 05 Feb 2024

Downloads:

15,555

Downloads of v 0.16.4:

1,520

Software Author(s):

  • Alexander Neumann

Restic 0.16.4

This is not the latest version of Restic available.

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Alexander Neumann. The inclusion of Alexander Neumann trademark(s), if any, upon this webpage is solely to identify Alexander Neumann goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Restic, run the following command from the command line or from PowerShell:

>

To upgrade Restic, run the following command from the command line or from PowerShell:

>

To uninstall Restic, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade restic -y --source="'INTERNAL REPO URL'" --version="'0.16.4'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade restic -y --source="'INTERNAL REPO URL'" --version="'0.16.4'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install restic
  win_chocolatey:
    name: restic
    version: '0.16.4'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'restic' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '0.16.4'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller restic
{
    Name     = "restic"
    Version  = "0.16.4"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'restic':
  ensure   => '0.16.4',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved as a trusted package on 21 Jul 2024.

Description

Restic is a backup program that is fast, efficient and secure. Restic will be installed into \chocolatey\lib\restic


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageArgs = @{
  PackageName    = 'restic'
  FileFullPath   = "$toolsPath\restic_0.16.4_windows_386.zip"
  FileFullPath64 = "$toolsPath\restic_0.16.4_windows_amd64.zip"
  Destination    = $toolsPath
}

$srcFileName = "/restic_" + $env:ChocolateyPackageVersion
if ([Environment]::Is64BitOperatingSystem -and -not $env:chocolateyForceX86) {
    $srcFileName = $srcFileName + "_windows_amd64.exe"
} else {
    $srcFileName = $srcFileName + "_windows_386.exe"
}

Get-ChocolateyUnzip @packageArgs

$restic = ("$toolsPath" + "/restic.exe")

if (Test-Path $restic) {
  Remove-Item $restic
}

Rename-Item -Path ("$toolsPath" + "$srcFileName") -NewName "restic.exe"
legal\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The installer has been downloaded from the Github release page <https://github.com/restic/restic/releases/tag/v0.16.4>
and can be verified like this:

1. Download the following installers:
  32-Bit: <https://github.com/restic/restic/releases/download/v0.16.4/restic_0.16.4_windows_386.zip>
  64-Bit: <https://github.com/restic/restic/releases/download/v0.16.4/restic_0.16.4_windows_amd64.zip>
2. You can use one of the following methods to obtain the checksum
  - Use powershell function 'Get-Filehash'
  - Use chocolatey utility 'checksum.exe'

  checksum type: sha256
  checksum32: 46D932FF5E5CA781FB01D313A56CF4087F27250FBDC0D7CB56FA958476BB8AF8
  checksum64: 911A1B84F2100D2AC691C0BB28955FD2AB65E76CB2DBE651B21F6072A508E2BE

File 'LICENSE.txt' is obtained from <https://github.com/restic/restic/blob/master/LICENSE>
tools\.data~
 
tools\.pdata
 
tools\.reloc
 
tools\.symtab
 
tools\.text
 
tools\.xdata
 
legal\LICENSE.txt
BSD 2-Clause License

Copyright (c) 2014, Alexander Neumann <[email protected]>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
tools\.data
 
tools\.idata
 
tools\.rdata
 
update.ps1
Import-Module AU

function global:au_SearchReplace {
  @{
    ".\legal\verification.txt"      = @{
      "(?i)(32-Bit.+)\<.*\>"                       = "`${1}<$($Latest.URL32)>"
      "(?i)(64-Bit.+)\<.*\>"                       = "`${1}<$($Latest.URL64)>"
      "(?i)(checksum type:\s+).*"                  = "`${1}$($Latest.ChecksumType64)"
      "(?i)(checksum32:\s+).*"                     = "`${1}$($Latest.Checksum32)"
      "(?i)(checksum64:\s+).*"                     = "`${1}$($Latest.Checksum64)"
      "(?i)(downloaded.*release page\:?\s*)\<.*\>" = "`${1}<$($Latest.web_url)>"
    }
    ".\tools\chocolateyInstall.ps1" = @{
      "(?i)(^\s*FileFullPath\s*=\s*`"[$]toolsPath\\).*"   = "`${1}$($Latest.FileName32)`""
      "(?i)(^\s*FileFullPath64\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName64)`""
    }
  }
}

function global:au_BeforeUpdate {
  Get-RemoteFiles -Purge -NoSuffix
  
  $response = Invoke-WebRequest -Uri $Latest.ChecksumsUrl
  $rawCsv = ([System.Text.Encoding]::ASCII.GetString($response.Content)) -replace '  ',','

  $url32Hash = ConvertFrom-Csv -Header checksum,name $rawCsv | ? name -match 'windows_386.zip' | Select -First 1 -expand checksum
  $url64Hash = ConvertFrom-Csv -Header checksum,name $rawCsv | ? name -match 'windows_amd64.zip' | Select -First 1 -expand checksum

  if ($url32Hash -ne $Latest.Checksum32) {
    throw "File checksum of downloaded 32bit executable do not match expected upstream checksum"
  }
  if ($url64Hash -ne $Latest.Checksum64) {
    throw "File checksum of downloaded 64bit executable do not match expected upstream checksum"
  }
}

function global:au_GetLatest {
  $response = Invoke-WebRequest -Uri https://api.github.com/repos/restic/restic/releases/latest
  $release = ConvertFrom-Json $response.Content
  
  $version = $release.tag_name -replace '^v',''
  $url64   = $release.assets | ? name -match 'windows_amd64' | select -First 1 -expand browser_download_url
  $url32   = $release.assets | ? name -match 'windows_386' | select -First 1 -expand browser_download_url
  $checksumsUrl  = $release.assets | ? name -match 'SHA256SUMS$' | select -First 1 -expand browser_download_url

  return @{
    url32          = $url32
    url64          = $url64
    checksumType32 = 'SHA256'
    checksumType64 = 'SHA256'
    version        = $version
	ChecksumsUrl   = $checksumsUrl
    web_url        = $release.html_url
  }
}

update -ChecksumFor none -NoCheckChocoVersion
tools\restic_0.16.4_windows_amd64.zip
md5: B7FB4D9916D5710A19C60E98E02EC4A0 | sha1: 5BBEA4C771B93900847536C3B970729B4C66D385 | sha256: 911A1B84F2100D2AC691C0BB28955FD2AB65E76CB2DBE651B21F6072A508E2BE | sha512: 44D1B1CF4A42DBBC39F27A836A5D585B38EF1FA63472F91AE601A01DCAA416F413E79183546DDDA21E885FFCDD21CEE445F1A4F5D5025FB277A32C341AEAC5F8
tools\restic_0.16.4_windows_386.zip
md5: 6D813BC15E029C493B67BCBD7844A4C2 | sha1: 73FC1A12A2E5EC1A72581C6854D4E38C168AA590 | sha256: 46D932FF5E5CA781FB01D313A56CF4087F27250FBDC0D7CB56FA958476BB8AF8 | sha512: 845A440E805D04C3FB0EBE1BB80478C100D5CC0BD2C79E2621E86CB4CB26CA1C493E99348C724ED232D7D2C40B4F275BBF6CB5981DFBA305E5CFED06B85E06E5
tools\restic_0.16.3_windows_amd64.exe
md5: 1EDFD6773D633E74E59A735D91437C61 | sha1: 4967A6EAE81FC6B597E26B0EC8219A0F42A420F5 | sha256: C12622EF9EF71A528C32B9146892C3A73BD796758C31D981B78780D64F86856E | sha512: 37DFB1EC52AB15719350530D485CD3AC32E5F6ABD1ACAD50D54D7463F70CB3C1C81666B119A836C5CC56C5A2CEB11BF41848E41F2EC841FE016FA3E322EFF162
tools\restic_0.16.3_windows_386.exe
md5: 611FE869E1070EC1D1EB30C47E801198 | sha1: BCB6398BE1977912C1B3B51C27F87D0F94FC7C9C | sha256: 5B5C964AC5F6C9FD6539B912692C594572D4B5FE6B8820C728FF8D994095C9D2 | sha512: 129D924EFEF582FCB0A203B17D82AB03C1E310AB516D5C6C6A6A57CEABC4FEFD4A1886EA7605AB2189790C1196CB2EBB824923E3869157862CD48AD00C655744

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Restic 0.17.2 339 Tuesday, October 29, 2024 Approved
Restic 0.17.1 687 Friday, September 6, 2024 Approved
Restic 0.17.0 624 Tuesday, July 30, 2024 Approved
Restic 0.16.4 1520 Monday, February 5, 2024 Approved
Restic 0.16.3 545 Monday, January 15, 2024 Approved
Restic 0.16.1 1052 Thursday, October 26, 2023 Approved
Restic 0.16.0 781 Monday, August 7, 2023 Approved
Restic 0.15.2 954 Tuesday, April 25, 2023 Approved
Restic 0.15.1 846 Friday, February 3, 2023 Approved
Restic 0.13.1 1778 Monday, April 18, 2022 Approved
Restic 0.12.1 1242 Wednesday, August 4, 2021 Approved
Restic 0.12.0 768 Tuesday, March 16, 2021 Approved
Restic 0.11.0 1714 Friday, November 13, 2020 Approved
Restic 0.9.6 579 Monday, October 26, 2020 Approved
Restic 0.9.5 1431 Thursday, April 25, 2019 Approved
Restic 0.9.4 290 Tuesday, February 12, 2019 Approved

This package has no dependencies.

Discussion for the Restic Package

Ground Rules:

  • This discussion is only about Restic and the Restic package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Restic, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus