restic 0.19.0 → 0.20.0
2 releases · 2 breaking changes · 2 security fixes · 0 advisories fixed
2security2breaking0deprecated6feature38fix
Breaking changes
- breaking 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,… in 0.20.0
- breaking Bugfix #21895: Remove read-only files via the SFTP backend on Windows servers Since restic 0.19.0, repository files on the SFTP backend are marked read-only after save. On Windows SFTP servers, removing them failed with a permission error. The SFTP backend now clears the read-only flag before… in 0.19.1
Security changes
- security 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… in 0.20.0
- security 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… in 0.20.0
Every release in between
fixSec: Fix ownership when restore --ownership-by-name cannot resolve names
otherSec: Reject duplicate or out-of-order node names during restore
fixFix: Don't crash on truncated key or config file
fixFix: Redact swift backend password in debug log output
fixFix: Reject empty repository location files
fixFix: Restore partially matching hard-linked files correctly
fixFix: Handle empty directories from older repaired snapshots
fixFix: Don't reset stats progress bar counters for every snapshot
fixFix: Improve error message when prune fails to list pack files
fixFix: Improve resilience of repository v2 upgrade rollback
fixFix: Error on too large numbers in --keep-within* durations
fixFix: Do not delete files in directories whose tree cannot be loaded
otherChg: Require Go 1.26.10 or newer
featureEnh: Add JSON support to prune command
featureEnh: Add option to disable AWS S3 dual-stack endpoints
featureEnh: Add warmup support for check on the S3 backend
otherEnh: Support specifying snapshot ID in list packs command
otherEnh: Support Multi-Bucket Application Keys in the b2 backend
otherEnh: Handle missing pack files in repair packs
otherEnh: Show excluded items during backup in verbose mode
otherEnh: Handle corrupted pack files in find --pack
otherEnh: Make repair snapshots --forget remove broken snapshots
otherEnh: Reduce memory usage of the in-memory index
securitySecurity #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…
securitySecurity #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…
breakingBugfix #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,…
fixBugfix #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.
fixBugfix #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…
fixBugfix #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…
fixBugfix #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 . This has now been fixed, allowing prune, check and restore to…
fixBugfix #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…
fixBugfix #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…
fixBugfix #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…
fixBugfix #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.
fixBugfix #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…
otherChange #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.
featureEnhancement #3129: Add JSON support to prune command The prune command now supports the --json option for JSON output.
featureEnhancement #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…
featureEnhancement #5248: Add warmup support for check on the S3 backend The check command can now warm up pack files from cold storage on S3 and S3-compatible providers before reading them. Like the other cold storage features, this remains experimental and is gated behind the s3-restore feature flag.
fixEnhancement #21845: Handle missing pack files in repair packs Missing and damaged pack files previously required separate approaches to fix a repository. Both cases can now be handled by the repair packs command, which removes missing pack files from the repository index.
+6 more items in the release notesfixFix: Prevent mounting over the repository directory
fixFix: Skip inaccessible backup source paths
fixFix: Update mount latest symlink after snapshot reload
fixFix: Hide stats progress bar in JSON mode
fixFix: Restore old behavior of snapshots --latest without --group-by
fixFix: Show timezone location in snapshots output
fixFix: Prevent crash in mountpoint validation if mountpoint is inaccessible
fixFix: Remove read-only files via the SFTP backend on Windows servers
fixFix: Make backup respect excludes for duplicate directory entries
fixBugfix #5234: Prevent mounting over the repository directory Using a local repository directory as the mount target — or a path that contains it, or that it contains — caused the FUSE server to read its own backend files through the new mount, deadlocking the kernel and requiring a long reboot to…
fixBugfix #5667: Skip inaccessible backup source paths The backup command only skipped source paths that did not exist. A path that could not be accessed for another reason, such as a malformed path on Windows, was kept and produced an empty snapshot. Restic now skips any such path and aborts if none…
fixBugfix #5722: Update mount latest symlink after snapshot reload When restic mount was kept running while new snapshots were created, the new snapshots appeared in the mountpoint, but the latest symlink could still point to the previously latest snapshot. Restic now invalidates the cached snapshot…
fixBugfix #21866: Hide stats progress bar in JSON mode Since restic 0.19.0, the stats command shows a progress bar. This progress bar was unintentionally displayed also when using the --json option, mixing regular text output with JSON. This is now fixed.
fixBugfix #21869: Restore old behavior of snapshots --latest without --group-by Restic 0.19.0 accidentally changed the behavior of snapshots --latest to no longer group snapshots by host and paths by default. The snapshots --latest command now again uses the old behavior of grouping by host and paths…
fixBugfix #21876: Show timezone location in snapshots output With restic 0.19.0, the snapshots command printed the current timezone when listing snapshots. However, that timezone label might change during the year, for example with daylight saving time. Restic now prints a more consistent and shorter…
fixBugfix #21879: Prevent crash in mountpoint validation if mountpoint is inaccessible Since restic 0.19.0, the mount command validates a mountpoint before loading the repository. If restic was unable to stat the mountpoint, this would result in a crash. This has now been fixed to correctly return an…
breakingBugfix #21895: Remove read-only files via the SFTP backend on Windows servers Since restic 0.19.0, repository files on the SFTP backend are marked read-only after save. On Windows SFTP servers, removing them failed with a permission error. The SFTP backend now clears the read-only flag before…
fixBugfix #21899: Make backup respect excludes for duplicate directory entries Since restic 0.19.0, backing up a directory with duplicate directory entries always produced "Warning: at least one source file could not be read", even when those files were excluded. This has now been fixed.