Restic 0.14.0, released on August 25, 2022, adds compression through a new version of its backup repository format. Format 2 cannot be read by restic versions older than 0.14.0. Before converting a repository, administrators need to check the restic version on recovery machines, not only on the backup servers. [S4][S2]
Installing a newer restic binary is separate from upgrading an existing repository. The version 0.14 documentation requires an explicit format migration: migrate upgrade_repo_v2 checks the repository’s integrity before changing its version, and repository problems must be corrected before migration can proceed. A subsequent prune run compresses the metadata. Neither step means that all the previously backed-up file contents have been compressed. [S2][S4]
Restic leaves existing file contents in place while new backups add compressed data. To compress the older data sooner, the manual specifies prune --repack-uncompressed; --max-repack-size can limit how much data a prune run rewrites at once. For teams intending to use maximum compression, it says to add --compression max to that pruning operation. The documentation also states that the compression level of already backed-up data cannot be changed later. [S2]
Compression settings need attention in recurring jobs. The release offers auto, the default; max, which trades backup speed and CPU usage for better compression; and off. A --compression setting applies only to that restic invocation, not automatically to future runs. Administrators can also supply it through RESTIC_COMPRESSION. Turning compression off does not restore access for older clients. [S4]
Administrators can instead copy snapshots into a newly created format-2 repository. That route has a transfer cost: the manual says copy must read and write the entire snapshots because the two repositories use different encryption keys. This can consume more bandwidth and cost more than a normal backup. Copying does not split files into new chunks. Restic therefore advises initializing the destination with the source’s chunker parameters so identical files can still be deduplicated across the copied snapshots and destination data. Those parameters cannot be changed in an existing repository. [S4][S2]
A migration plan should also specify what its integrity check will read. Restic’s default check inspects repository structure but does not verify that the actual pack files on disk are unmodified. The version 0.14 manual documents check --read-data for that deeper check. It reads every pack file, so the manual warns that it can take longer and incur higher bandwidth costs than the default check. [S2]
Source documents
- Restic 0.14.0 changeloghttps://raw.githubusercontent.com/restic/restic/1bc87e1718b65d7dd95f41ec8dc3a9d042704e20/CHANGELOG.md
- Restic 0.14.0: Working with repositorieshttps://raw.githubusercontent.com/restic/restic/1bc87e1718b65d7dd95f41ec8dc3a9d042704e20/doc/045_working_with_repos.rst
