Repository navigation
Hello rusticeans,
we are happy to release rustic 0.12.0!
This is mainly a bugfix release which fixes a bug in prune which can lead to potential data loss when multiple parallel prune and backup runs are in the game. Thanks a lot to @7fffffff for finding and reporting!
Moreover, in some rare cases the rustic chunker did differ from the restic chunker which is now corrected and the chunker has been speed-optimized for large data parts containing only zero bytes.
Besides this, many other improvements and smaller fixes have landed, e.g. a precise restic-like exit code for unreadable source files, the possibility to specify repository init options in the config profile and added http- options to configure rest and opendal backends better.
Last but not least, many dependency updates did solve all of the recently discovered general security issue and may give some improvements for the opendal backend.
Most of the changes came again from the community - thanks a lot to all contributors!
Changelog
Added
- Add more reqwest options for rest+opendal backends (#556, #642, #598)
- return exit code 3 when backup source files are unreadable (#1908, #561)
- impl Serialize/Deserialize and Merge for ConfigOptions (#559)
- log OpenDAL retries as a single line (#562)
- (ls) list entries with type and metadata with
--json --long(#1952) - add [init] to config profile (#1907)
Fixed
- (prune) [breaking] Fix bug with concurrent prune runs and recovered packs (#639)
- (chunker) [breaking] prefill the whole rolling hash window (#638)
- [breaking] Don't merge subpaths (#563)
- Fix clippy lints and security issues (#629)
- (backup) compare inodes unless ignore_inode is set (#632)
- (restore) replace an entry that sits where a hardlink belongs (#634)
- (restore) prevent path traversal in LocalDestination (#590)
- (chunker) keep chunks within bounds for a small min size (#637)
- (forget) count minutes within the same hour for keep-minutely (#633)
- (prune) safely handle directory nodes without subtree in find_used_blobs (#587)
- (repair) safely handle file nodes with missing content in repair snapshots (#586)
- (copy) exit with an error when copying to a target failed (#1950)
- (mount) avoid panics on integer overflow and malformed xattr names in FUSE handler (#1938)
- (tui) handle directory nodes without subtree in ls view to prevent panics (#1937)
- (packer) validate blob offsets and bounds in BlobCopier (#591)
- (tree) safely handle directory nodes without subtree in NodeStreamer and merge_nodes (#588)
- (backend) propagate opendal errors when checking for config (#640)
- set is_hot from the repository in init_with_config (#602)
- join tree loader threads before releasing the index (#607)
- reject key files with invalid or excessive scrypt parameters (#592)
- don't overflow in BlobLocations::can_coalesce (#589)
- don't underflow in BlobLocation::data_length (#585)
- stop tree workers after receiver closes (#546)
- include path in canonicalization errors (#548)
- iOS build (#553)
- protect cache backend with locks (#544)
- run delete hook when replacing a file (#547)
- use literal binary name in cargo-binstall pkg-url (#1963)
- Print url first in docs command (#1898)
Other
- [breaking] Prefix all http transport options with http- (#558)
- dependency updates (#1997, #653, #1990)
- don't hash all-zero chunks (#611)
- add OpenDAL attribution (#552)
- fix cargo-careful on main (#648)
- compare the Debug form of the path in the sanitize error (#630)
- tidy up type parameters (#580)
- update core README credential API (#549)
- Document Debian installation from the pkg.haus APT archive (#1881)
- Document OneDrive OAuth setup (#1920)