- books ahead of the folder (as after a restore from an older backup) offer a
new backup set beside the old one, at the person's request: books.back_up_now
new_set, back-up --new-set, a button in the Backups window
- a key file lost from a sealed destination stops backups and asks for the
passphrase; plain is written only after an explicit removal, which the record
keeps (a damaged record falls back to what the folder itself holds)
- a restore that is not of the newest backup says so first, in the warning
colour, with both dates and how many backups it passes over
- a folder a sync service keeps (or may) is said in plain words at set-up and
in the window: one computer only, kept offline, a second computer its own
- a drill that finds only an older whole backup fails in words
- a manifest whose proof was cut short is marked unproven and proven by the
next backup, even one with nothing new; a saved backup file is proven whole
before it is given its name
- the proof compares the journal its pieces make with the head the manifest
records before the books open, and lets opening add only after it
- the restore tests are split from backups.rs to keep each under a minute; the
clone-of-an-old-git-backup test builds the working tree without git
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A backup that restores old or wrong books while reporting good is the worst
defect the product can have. A piece already in the destination was taken as
the piece (its name is its hash), the manifest built on the newest backup
whose pieces were the right length, no proof ran after a backup, and the
drill fell back to older manifests and recorded ok with the older head.
- the manifest just written is read back and proven before the backup is
recorded good: every journal and access segment re-hashed, the chain
replayed to its head, vault and keys present, the index, and the stored
files this backup added plus a rotating sixteenth of the others (every
stored file is re-read within 16 manifest numbers; the drill re-hashes all)
- a piece found damaged is written again under a generation suffix beside
the damaged file (never touched), a new manifest names it, and the reader
accepts any generation of a piece whose contents hash right
- the drill passes only on the newest manifest, and only when it reaches the
head of the last backup recorded good; an older whole backup is a failure
that says so with its date
- no consolidation: a manifest names the one before it and only what is new
(a chain of 64, each link proven by the hash its successor holds)
- restore and drill read newest first and stop at the first that proves
- live books that are the beginning of the destination's longer history are
ahead; any other mismatch is diverged or other books
- a new set can begin beside the old (.2), never touching it; set folders
carry a fixed prefix so no book id is a reserved name on Windows
- no hard link is never a reason to replace: only errors that mean the disk
makes no links fall back, to a move that refuses to replace
- sealed pieces are sharded by two digits; header settings are capped at 4x
and bound into the sealed check; find derives one key per distinct setting
- vault scratch files are never backed up as records
- files a sync service has not downloaded read as not downloaded yet
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The store's own verification reads the text an extraction recorded as a stored
file, so a verification that left the stored files out would not prove books
with extracted text. Every proof now builds the books with their stored files,
as a restore does, and a test holds it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Restore reads a destination folder, a set's folder, or a backup file with an
optional passphrase; the server cuts the books under the store's lock and
writes the folder outside it; the format upgrade proves a local backup in the
book's folder (the same form) before it moves the format. The old backup
(git processes, their locks, the output drain) and every test of it are gone;
what each test protected is held by the new form's tests (table in the
report). Old settings and an old history in a book's folder are said in the
status and left alone.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>