Living Document Notice
Published 2026-09-17. The evolving architecture, revisions, and connected notes for this dispatch live in the Stax Digital Garden.

Preserving Multi-Year Daily Archives on Flash and Cold Media

Preserving Multi-Year Daily Archives on Flash and Cold Media: Dual-trace Phosphor P7 monochromatic ice blue and P4 paper white vector CRT macro showing decadal squashfs container geometries, hierarchical directory tree node clusters, and immutable read-only cold media sector arcs

After five to ten years of continuous journaling, a digital garden accumulates thousands of daily log files. Without deliberate archival engineering, directory indexing slows, search indexing consumes excessive RAM, and flash storage media risks bit rot. The Bosun Logbook implements a hierarchical tiering strategy for multi-year daily notes.

Directory Partitioning and Inode Hierarchy

Storing 3,650 files in a single flat directory stresses filesystem directory index trees. Logbook enforces a decade-year-month folder hierarchy:

04 Logbook/
├── 2020s/
│   ├── 2026/
│   │   ├── 09-September/
│   │   │   ├── 2026-09-16.md
│   │   │   └── 2026-09-17.md

This guarantees that no directory ever contains more than 31 entries, keeping POSIX directory traversals instantaneous even on low-power ARM nodes.

Decadal Archival Packing

For notes older than 730 days (two years), the archival daemon compresses monthly directories into deterministic squashfs read-only images:

# Build read-only immutable archive
mksquashfs 04\ Logbook/2020s/2024/ 2024-archive.squashfs -comp zstd -Xcompression-level 19
 
# Verify cryptographic hash for cold storage
sha256sum 2024-archive.squashfs > 2024-archive.squashfs.sha256

The resulting squashfs containers can be mounted locally on demand via loopback devices. The files remain standard plaintext markdown, fully readable by standard tools like grep, cat, and tree-sitter parsers fifty years into the future.


  • Directus Target: logbook
  • Garden Source Reference: MOC - Daily Log & Chronological Journal, MOC - Bosun PKM Tools
  • Garden Source Reference: [LOG-1008 - Preserving Multi-Year Daily Archives on Flash and Cold Media](LOG-1008 - Preserving Multi-Year Daily Archives on Flash and Cold Media)