restic

restic·restic.restic

Fast, secure, efficient backup program

restic is a backup program that is fast, efficient and secure. It supports the three major operating systems (Linux, macOS, Windows) and a few smaller ones (FreeBSD, OpenBSD).

winget install --id restic.restic --exact --source winget

Latest 0.20.0·November 19, 2026

Release Notes

Changelog for restic 0.20.0 (2026-11-19)

The following sections list the changes in restic 0.20.0 relevant to restic users. The changes are ordered by importance.

Summary

• Sec #22178:Fix ownership when restore --ownership-by-name cannot resolve names • Sec #22180:Reject duplicate or out-of-order node names during restore • Fix #21977:Don't crash on truncated key or config file • Fix #22007:Redact swift backend password in debug log output • Fix #22051:Reject empty repository location files • Fix #22085:Restore partially matching hard-linked files correctly • Fix #22092:Handle empty directories from older repaired snapshots • Fix #22112:Don't reset stats progress bar counters for every snapshot • Fix #22120:Improve error message when prune fails to list pack files • Fix #22136:Improve resilience of repository v2 upgrade rollback • Fix #22163:Error on too large numbers in --keep-within* durations • Fix #22181:Do not delete files in directories whose tree cannot be loaded • Chg #22104:Require Go 1.26.10 or newer • Enh #3129:Add JSON support to prune command • Enh #5189:Add option to disable AWS S3 dual-stack endpoints • Enh #5248:Add warmup support for check on the S3 backend • Enh #5372:Support specifying snapshot ID in list packs command • Enh #5741:Support Multi-Bucket Application Keys in the b2 backend • Enh #21845:Handle missing pack files in repair packs • Enh #21870:Show excluded items during backup in verbose mode • Enh #21883:Handle corrupted pack files in find --pack • Enh #21892:Make repair snapshots --forget remove broken snapshots • Enh #21937:Reduce memory usage of the in-memory index

Details

• Security #22178:Fix ownership when restore --ownership-by-name cannot resolve names

When restoring with --ownership-by-name, user or group names that could not be resolved on the restore host (or were not recorded in the snapshot) caused restic to change the owner of the restored file to UID/GID 0. Combined with restored setuid/setgid bits this could produce unintentional setuid-root files.

Restic now instead falls back to the numeric UID/GID stored in the snapshot and prints a warning when a name cannot be resolved.

[#22178](https://github.com/restic/restic/issues/22178) [#22185](https://github.com/restic/restic/pull/22185) 

• Security #22180:Reject duplicate or out-of-order node names during restore

A tree containing a symlink and a directory with the same name could let restore write through the symlink to files outside the restore target.

Restic now rejects trees whose node names are not strictly increasing during restore and reports an error instead of restoring such a snapshot.

Thanks to Mario Ramos (@marrionesa), calif.io, Zachariah Mithani (AploSec) and Manuel Riel (@m3nu) for reporting this.

[#22180](https://github.com/restic/restic/issues/22180) [#22190](https://github.com/restic/restic/pull/22190) 

• Bugfix #21977:Don't crash on truncated key or config file

Restic previously crashed with a slice bounds panic when the repository contained a key or config file that was shorter than the encryption overhead, for example after an upload was interrupted. Since every command has to read a key file, the whole repository became unusable until the file was removed.

This has now been fixed, and restic instead reports that the file is too short.

[#21977](https://github.com/restic/restic/pull/21977) 

• Bugfix #22007:Redact swift backend password in debug log output

Restic could previously write the OpenStack Swift backend password in clear text to the debug log when debug logging was enabled. The password came from the environment variables OS_PASSWORD and ST_KEY. It is now redacted.

[#22007](https://github.com/restic/restic/pull/22007) 

• Bugfix #22051:Reject empty repository location files

Previously, if the --repository-file option or RESTIC_REPOSITORY_FILE environment variable referred to a file that was either empty or contained only whitespace, restic used the current directory for the repository.

This has now been fixed, and restic instead reports an error in this case.

[#22051](https://github.com/restic/restic/issues/22051) [#22052](https://github.com/restic/restic/pull/22052) 

• Bugfix #22085:Restore partially matching hard-linked files correctly

When restoring over an existing file which had hard links and was partially different from the file in the snapshot, restic used to replace the file with an empty one but only restored the changed parts. The restored file then contained zero bytes in the unchanged parts. Restic now instead rewrites the whole file in this case.

[#22085](https://github.com/restic/restic/issues/22085) [#22086](https://github.com/restic/restic/pull/22086) 

• Bugfix #22092:Handle empty directories from older repaired snapshots

Since restic 0.19.0, snapshots containing empty directories written by older versions of repair snapshots could fail with error decoding tree:expected [, got <nil>.

This has now been fixed, allowing prune, check and restore to process the affected snapshots successfully.

[#22092](https://github.com/restic/restic/issues/22092) [#22117](https://github.com/restic/restic/pull/22117) 

• Bugfix #22112:Don't reset stats progress bar counters for every snapshot

The progress bar of the stats command previously reset its file, blob and size counters at the start of each snapshot, so the final progress line only showed the numbers for the last processed snapshot. These numbers varied between runs depending on the order in which snapshots were processed.

The progress bar now instead counts across all selected snapshots.

[#22112](https://github.com/restic/restic/issues/22112) [#22130](https://github.com/restic/restic/pull/22130) 

• Bugfix #22120:Improve error message when prune fails to list pack files

When listing the pack files of a repository failed during prune, for example due to a request timeout, restic printed the error together with a stack trace.

Restic now instead reports a short error message stating that listing the pack files failed.

[#22120](https://github.com/restic/restic/issues/22120) [#22124](https://github.com/restic/restic/pull/22124) 

• Bugfix #22136:Improve resilience of repository v2 upgrade rollback

When an upgrade from repository version 1 to version 2 failed, restic deleted the configuration file before writing the previous version of it back. If writing the old configuration file back also failed, the repository no longer had a configuration file and could not be opened.

Restic now writes the previous configuration back without deleting the file first on relevant backends.

[#22136](https://github.com/restic/restic/pull/22136) 

• Bugfix #22163:Error on too large numbers in --keep-within* durations

Restic used to crash with a stack trace when a number in a duration such as the one passed to forget --keep-within did not fit into an integer. It now reports an invalid argument instead.

[#22163](https://github.com/restic/restic/pull/22163) 

• Bugfix #22181:Do not delete files in directories whose tree cannot be loaded

When restore --delete failed to load or read the tree of a directory, for example because a pack file was missing, restic reported an error but then deleted all existing content of that directory in the target. Restic now disables deletion for the rest of the restore when a tree cannot be loaded.

[#22181](https://github.com/restic/restic/issues/22181) [#22189](https://github.com/restic/restic/pull/22189) 

• Change #22104:Require Go 1.26.10 or newer

Restic now requires Go 1.26.10 or newer to build, as the library used to access the B2 backend requires it.

[#22104](https://github.com/restic/restic/pull/22104) [#22121](https://github.com/restic/restic/pull/22121) 

• Enhancement #3129:Add JSON support to prune command

The prune command now supports the --json option for JSON output.

[#3129](https://github.com/restic/restic/issues/3129) [#5239](https://github.com/restic/restic/pull/5239) 

• Enhancement #5189:Add option to disable AWS S3 dual-stack endpoints

Restic used dual-stack endpoints for AWS regions that have them, with no way to opt out. VPC interface and gateway endpoints do not support dual-stack, so a repository reachable over a VPC endpoint could not be used.

Passing -o s3.disable-dualstack=true now keeps restic on the single-stack endpoint.

[#5189](https://github.com/restic/restic/issues/5189) [#22060](https

Installer type: zip

x86—AB849C4E351AF2A2D9B96722668F8779BA6B38E7EF29CFA5C67D14D9B2CDCC2D
x64—BBA9061C3DCE081701AB353EC8CB73A78BE73B71A538AAD560F2D1067602B7FE

Details

Homepage
https://github.com/restic/restic
License
BSD-2-Clause
Publisher
restic
Support
https://github.com/restic/restic/issues
Copyright
Copyright (c) 2014, Alexander Neumann <[email protected]>
Moniker
restic

Tags

backupdedupededuplicationgoresticsecure-by-default

Older versions (14)

0.19.1
x86—24147168E7988AF20E4957D06AB7A9BA73792755150CE1FF270AD586C37FD160
x64—DA948AD707ED690426473AABA2046CD61F8F90F6F0E7DAB6BE0D5796531DE67D
0.19.0
x86—5AB17C545FED2002E328BFB2816EFD01E64F9AD69FFAE38ADE014FC52AC6579D
x64—6FA4219A70B1B5D1C429BB106A7F97F3D2A5AAB74494DB2E490B625EDC486D8F
0.18.1
x86—C97028C921AD5ABCA07A826913585F216114E8F2BF463A112CE116C352D2C166
x64—0C1A713440578CB400D2E76208FEB24F1B339426B075A21F73B6B2132692515D
0.18.0
x86—057DA51ACCF774EA551D680239FA55C61613584BE0E960A2A5D0AB9018F6F585
x64—C90CFCD577FE3D60D2529021E76BD5637BDCD19D7FA84840A40FCBBF995902DE
0.17.3
x86—045C160EF53D1C32D6C5CF60BC3805026BE807DDBFEA1D9DBC90E1C5FDF94776
x64—FCF5875DE5A995100E8A2ECAD5B0ADA86B47155796BECE87A425A251288C800F
0.17.2
x86—7EC22DF3B0C71B04A3F41010780710688CC331C00F9A60EB2D667E123D6A0AC1
x64—C44B1A22975F42F0547AA905104A8EBAE43F51DB62FD347C293EBF246233A7D3
0.17.1
x86—B37D69CCA2FD086414C86BC0362791899C572549DCCF23264ABF48BD5B41B857
x64—8CCA20660BD827552A96BD4B4ADE2EBAB1880CD068B43EEA5FB211F11A98AC60
0.17.0
x86—EC72C50BDD6B49A4A045EE92E471C01596640426AA4F5CDFDCE2C2A975A2913D
x64—8578D2A63BBEDD34669ED4CD8B332FB3AECFD3480EA3EF6D0C692E6FC146CB3E
0.16.4
x64—911a1b84f2100d2ac691c0bb28955fd2ab65e76cb2dbe651b21f6072a508e2be
0.16.2
x64—DE63F778F0650DB9C0C00C3772D7F87A6C21CA64E1249E55392ECBEB9BC352A3
0.16.1
x64—6FAB3FA836659C85B97E7A8E514BDBB8D4DF186600212A7B5C36CAFFF7942E38
0.16.0
x64—9EC893FC952F4E45307F8CD603B6DE2F396E1AD757AF6847C00A148257C0DFB7
0.15.2
x64—37DBD859160BBB6D1B95E9F4A5C498C8DF386DB510950875C70328F688CB4E5D
0.15.1
x64—f05d3115ca5636a3a30f454f62c51746473121d40b9624dd28d84589b8e2eaf2