Tools3 min read

restic 0.20.0 fixes a hard-linked file restore issue

What changed in restic 0.20.0 and why an empty-target restore does not test rebuilding a hard-linked file over an existing copy.

Prepared by the NADALI editorial team using AI

An opened hard disk drive with a shiny platter and a read head.
Nicolas Foster / Pexels — https://www.pexels.com/photo/close-up-of-internal-hard-disk-drive-on-white-background-38117131/. Illustrative stock photograph, not a restic demonstration. · Pexels License — https://www.pexels.com/license/; free use verified 2026-11-22. Stock photograph, not AI generated. · 1440 × 960

By Nadali. Prepared with AI assistance.

The restic project released version 0.20.0 on November 19, 2026. The release fixes an issue worth checking if your team restores over existing files: in a specific hard-link case, the restored file could have incorrect content. A file that exists and has the expected size is not necessarily a correct restore.

What changed

Hard links are multiple names for the same file on a filesystem. The release notes describe a restore over an existing hard-linked file whose content only partly matched the selected snapshot. With the fix, restic rewrites the whole file in that case. This is not a finding that all backup snapshots are damaged, or a reason to recreate the repository.

For example, a small studio may keep project assets on a server and use a recovery runbook that restores over a working directory. Check the restic version on the actual recovery host or runner first. Updating a client on a different machine does not change that recovery path.

Start with a restore into an empty directory

Choose a known snapshot and a small set of files with an independently trusted reference for that snapshot’s version, such as an approved copy of the corresponding export or checksums recorded earlier. The official restore guide explains how to select a snapshot and a separate target directory. Use only an approved repository and an isolated scratch target where you are authorized to write. Compare the restored contents with the reference; a size match or success message is not enough. Record the restic version, snapshot ID, and outcome without logging credentials or file contents.

This tells you whether the selected sample restores into an empty target. It does not exercise the fixed case involving a file already present in the destination.

Check an existing-target restore separately if you use one

If your actual recovery workflow restores over existing hard-linked files, ask the responsible administrator to exercise that path on a separate, authorized test copy containing existing files, never on the live destination. Compare each affected file with the independently known-good contents for that snapshot. Keep separate outcomes for “empty-target restore” and “restore over existing hard-linked files.” If the test does not cover an existing hard-linked file whose content only partly matches the snapshot, do not mark this specific fix as tested.

Also on Nadali: how to document a sample restore check.

The example is hypothetical. Nadali did not run restic or restore any files. Sources checked November 22, 2026. 

Sources and verification

  1. restic project: release and changelog for restic 0.20.0 ↗
    Source checked: 2026-11-22
  2. restic 0.20.0 documentation: Restoring from backup ↗
    Source checked: 2026-11-22
  3. restic project: Restic 0.20.0 Released ↗
    Source checked: 2026-11-22