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:

16,078

Downloads of v 0.17.3:

863

Last Update:

12 Nov 2024

Package Maintainer(s):

Software Author(s):

  • Alexander Neumann

Tags:

restic backup file

Restic

  • 1
  • 2
  • 3

0.17.3 | Updated: 12 Nov 2024

Downloads:

16,078

Downloads of v 0.17.3:

863

Software Author(s):

  • Alexander Neumann

Restic 0.17.3

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'" [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'" 
$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.17.3'
    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.17.3'
end

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


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

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


package { 'restic':
  ensure   => '0.17.3',
  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 12 Nov 2024.

Description

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


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.
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.17.3>
and can be verified like this:

1. Download the following installers:
  32-Bit: <https://github.com/restic/restic/releases/download/v0.17.3/restic_0.17.3_windows_386.zip>
  64-Bit: <https://github.com/restic/restic/releases/download/v0.17.3/restic_0.17.3_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: 045C160EF53D1C32D6C5CF60BC3805026BE807DDBFEA1D9DBC90E1C5FDF94776
  checksum64: FCF5875DE5A995100E8A2ECAD5B0ADA86B47155796BECE87A425A251288C800F

File 'LICENSE.txt' is obtained from <https://github.com/restic/restic/blob/master/LICENSE>
tools\.data
 
tools\.data~
 
tools\.idata
 
tools\.pdata
 
tools\.rdata
 
tools\.reloc
 
tools\.symtab
 
tools\.text
 
tools\.xdata
 
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageArgs = @{
  PackageName    = 'restic'
  FileFullPath   = "$toolsPath\restic_0.17.3_windows_386.zip"
  FileFullPath64 = "$toolsPath\restic_0.17.3_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"
tools\restic_0.16.3_windows_386.exe
md5: 611FE869E1070EC1D1EB30C47E801198 | sha1: BCB6398BE1977912C1B3B51C27F87D0F94FC7C9C | sha256: 5B5C964AC5F6C9FD6539B912692C594572D4B5FE6B8820C728FF8D994095C9D2 | sha512: 129D924EFEF582FCB0A203B17D82AB03C1E310AB516D5C6C6A6A57CEABC4FEFD4A1886EA7605AB2189790C1196CB2EBB824923E3869157862CD48AD00C655744
tools\restic_0.16.3_windows_amd64.exe
md5: 1EDFD6773D633E74E59A735D91437C61 | sha1: 4967A6EAE81FC6B597E26B0EC8219A0F42A420F5 | sha256: C12622EF9EF71A528C32B9146892C3A73BD796758C31D981B78780D64F86856E | sha512: 37DFB1EC52AB15719350530D485CD3AC32E5F6ABD1ACAD50D54D7463F70CB3C1C81666B119A836C5CC56C5A2CEB11BF41848E41F2EC841FE016FA3E322EFF162
tools\restic_0.17.3_windows_386.zip
md5: 3857A9F0DA851F8552AF32413BBE6E2E | sha1: 2C2354D49B9E275D83DAC4308983DFFE275835EF | sha256: 045C160EF53D1C32D6C5CF60BC3805026BE807DDBFEA1D9DBC90E1C5FDF94776 | sha512: ABC36844ABB54EAEB3AF2AB0696F50C6DD884C4C08670BADE1B76C805ED0B3777C3CF72B96A2DEB318091260684A9F8596117071E0C272E15DFED6FD1CFBB509
tools\restic_0.17.3_windows_amd64.zip
md5: 3E609CE94D8D1C455B5CE5549B0A48CE | sha1: 26800EBEDF2E6CD82372644705C7EE337E425874 | sha256: FCF5875DE5A995100E8A2ECAD5B0ADA86B47155796BECE87A425A251288C800F | sha512: B81C17D18143A376769DC14F59C40C94EDE7FAB230257B295037DBEB437DA130600E709192C532DBC727708F37E848A56DB73A3A2A7CEBAB6FEBF9F7A3F0029E
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

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 344 Tuesday, October 29, 2024 Approved
Restic 0.17.1 693 Friday, September 6, 2024 Approved
Restic 0.17.0 629 Tuesday, July 30, 2024 Approved
Restic 0.16.4 1524 Monday, February 5, 2024 Approved
Restic 0.16.3 549 Monday, January 15, 2024 Approved
Restic 0.16.1 1056 Thursday, October 26, 2023 Approved
Restic 0.16.0 786 Monday, August 7, 2023 Approved
Restic 0.15.2 958 Tuesday, April 25, 2023 Approved
Restic 0.15.1 850 Friday, February 3, 2023 Approved
Restic 0.13.1 1780 Monday, April 18, 2022 Approved
Restic 0.12.1 1246 Wednesday, August 4, 2021 Approved
Restic 0.12.0 773 Tuesday, March 16, 2021 Approved
Restic 0.11.0 1718 Friday, November 13, 2020 Approved
Restic 0.9.6 585 Monday, October 26, 2020 Approved
Restic 0.9.5 1431 Thursday, April 25, 2019 Approved
Restic 0.9.4 293 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