Remove the blob temp file when a backup stops part-way #347

Merged
clawbot merged 1 commits from issue-302-remove-blob-temp-file into next 2026-10-13 11:14:57 +02:00
1 Commits
Author SHA1 Message Date
sneak f2ed1c4868 Remove the blob temp file when a backup stops part-way (closes #302)
check / check (push) Waiting to run
When `snapshot create` stopped on a file error, a full temporary
directory or Ctrl-C, the blob being packed was never finalized, and its
`vaultik-blob-*.tmp` file (up to `blob_size_limit` of encrypted data)
stayed in `$TMPDIR`. Phase 2 now calls the new
`Packer.DiscardCurrentBlob` on the way out, which closes and removes
that file. After a successful flush no blob is in progress, so the call
then does nothing.

The blob's row in the local index is left, as before, for the next
run's repair of interrupted blobs to remove.

Model: opus-5-5
2026-10-13 07:10:39 +00:00