Skip to content

fix(backup): verify and restore archives from read-only sources #1285

Closed

Description

@frahlg

PR #1261 currently creates verification scratch files beside the source archive. A readable archive on a read-only USB mount, or in a directory the caller cannot write, therefore cannot be inspected or restored even when the target has space and write access.

This is a candidate regression identified in the review of cee71eaf825d26b4281fece52c243cb32fd614c2, not a claim that it has shipped.

Keep creation on its preflighted output filesystem. Restore must use its writable target. Standalone verification should preserve the same-filesystem preference for large archives but support a writable temporary workspace for read-only sources.

Acceptance: create a synthetic backup containing a saved EV goal, remove source-directory write access, then verify, restore and restore into an existing mount. Preserve the goal, clean scratch files and retain the existing test with unavailable TMPDIR when the archive filesystem is writable.

Activity

  1. frahlg commented on Oct 18, 2026

    @frahlg
    MemberAuthor

    The read-only source fix is present in current master. TestReadOnlyArchiveCanBeVerifiedAndRestored passed three times with the race detector: it removes directory write access, verifies from that source, restores into an existing target with unavailable TMPDIR, and checks the saved EV goal. The test ran without skipping. Creation still uses its preflighted output workspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions