Harden the backup tree's atomic copy (closes #22) #85

Merged
clawbot merged 1 commits from issue-22-atomic-write-edges into next2 2026-09-23 02:44:47 +02:00
1 Commits
Author SHA1 Message Date
sneak 7102e3443e Harden the backup tree's atomic copy (closes #22)
check / check (push) Successful in 37s
The backup copy now fsyncs its temp file before the rename and the
directory after it, using the download writer's new fsyncPath helper.
Each backup run deletes .quak-backup-*.tmp files whose process is no
longer running, leaving those of a concurrent backup alone. The rename
sites and the README backup layout state that a symlink at the
destination is replaced and the new file takes the temp file's
permissions, and the README names the temp files. Adds tests for a
missing and an unwritable destination directory for downloadFile and
downloadThumbnail.

Model: opus-5-5
2026-09-23 00:38:17 +00:00