restic 0.20.0
快速安全的命令行备份工具。
软件简介
restic 把数据加密去重后备份到本地或云存储,恢复和校验都很简单。
功能特点
- 加密去重
- 多种云存储
- 快照管理
- 单文件
更新日志 · 0.20.0
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-namecannot 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
swiftbackend 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
statsprogress bar counters for every snapshot - Fix #22120: Improve error message when
prunefails 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
prunecommand - Enh #5189: Add option to disable AWS S3 dual-stack endpoints
- Enh #5248: Add warmup support for
checkon the S3 backend - Enh #5372: Support specifying snapshot ID in
list packscommand - Enh #5741: Support Multi-Bucket Application Keys in the
b2backend - Enh #21845: Handle missing pack files in
repair packs - Enh #21870: Show excluded items during
backupin verbose mode - Enh #21883: Handle corrupted pack files in
find --pack - Enh #21892: Make
repair snapshots --forgetremove broken snapshots - Enh #21937: Reduce memory usage of the in-memory index
Details
-------
- Security #22178: Fix ownership when
restore --ownership-by-namecannot 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.
- 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.
- 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.
- Bugfix #22007: Redact
swiftbackend 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.
- 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.
- 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](h
下载地址
官方下载直接指向软件作者的发布地址;网盘镜像为同一文件的转存,下载后可用 SHA-256 核对(官方未提供校验值的文件除外)。
-
Windows x64 · 绿色版 ZIP 绿色免安装restic_0.20.0_windows_amd64.zip · 13.3 MB