My Homelab Backs Up Its History to Cassette Tape
- Entry
- No. 62
- Date
- Reading time
- 7 min
- Status
- Borne out
- Author
- Jeff Breece
This one is for mom and dad, with my deep gratitude.
When I was a teen, dad brought home a TI-99a, our first home computer and I was glued to it for about a year. One summer, I worked at an Ice Cream shoppe for a summer then bought my beloved Atari 800XL, tape storage and dot matrix printer after that. THe middle school had TRS-80’s and, oddly enough, old punch card readers, which are conceptually relevant again, as my friends took the Commodore 64 path. It was an era that, while not compute power on todays terms, it brought into the world many many 1000’s of gifted programmers, engineers and product thinkers.
What I am grateful for is to have had the chance and the fortune to grow into this career over the decades and still, even now, meet that pimply teenage boy reflected back at me in my own computer monitor today. Still weird, having fun, playing with tech and dreaming.
The idea was to have my homelab back up its own history to cassette tape. It’s part of the memory core, and yes redundant, sources of truth in my local + Azure Hybrid agentic AI platform.
If you grew up loading games off a tape deck, you’ll probably remember the screech. This week I put that old 8- and 16-bit era trick back to work. A small tool in my home AI lab (I call it the Historian) takes a checkpoint of the lab’s record, i.e. the ledger of every change anyone or anything has made to it, turns it into modem tones, records them onto an ordinary C60, then plays the tape back and checks every byte.

Why a tape, of all things
Partly nostalgia, I’ll admit. But I think there is a real argument underneath it. A tape on a shelf is offline, cheap and very boring, which is what you want from the last copy of something. It doesn’t care about cloud accounts, ransomware, an expired certificate or an SSD that quietly died over the holidays. It also can’t be changed by anything running in the lab, which matters more to me now that a good part of the lab’s day-to-day work is done by AI agents that write their own change logs.
The ledger itself is small: plain-text entries in git, one per change, saying what was built, what was verified and what is left for a person. A checkpoint of it compresses down to a few hundred bytes to a few kilobytes, which is a size cassettes were built for.
A short history of computers that talked to tape
Before floppy drives were cheap, a lot of home computers saved programs to a cassette recorder, and each family did it slightly differently.
- The Kansas City Standard (1975). Hobbyists, with a push from BYTE magazine, agreed on a simple scheme at a meeting in Kansas City: a 0 is four cycles of 1200 Hz, a 1 is eight cycles of 2400 Hz, at 300 bits per second. It was slow, but almost any recorder could play it back, which was the point.
- TRS-80 (1977). The Model I used a pulse-based format, at 250 baud with Level I BASIC and 500 baud with Level II. The later Model III could also do 1500 baud, and loading at that speed was famously sensitive to the volume knob.
- Atari 8-bit (1979 on). The 410 and 1010 program recorders used frequency-shift keying at about 600 baud, two tones in the 4 to 5 kHz range. Atari also put a normal audio track on the other channel, so a tape could talk to you or play music while the program loaded.
- Commodore (PET, VIC-20, C64). The Datasette did the signal work in the computer, using pulse widths rather than tones, and the system wrote every program twice so a bad patch on the tape could be read from the second copy. Effective speed was slow (generally quoted around 300 bits per second), which is why “turbo” loaders became their own small industry.
- TI-99/4A (1981). Texas Instruments used its own frequency-modulated format at roughly 1,400 bits per second and, like Commodore, recorded each block twice.
Writing everything twice is the part I find most charming, because it is the same idea my tool uses, just with better math: modern parity data (PAR2) instead of a second copy.
How it works today
The lab runs on a handful of machines at home. The Historian runs on my workstation, with a cheap USB audio interface plugged into a dock and a portable cassette recorder beside it.
The full version of the diagram, with the bench log, is on its own page: the Tape Historian diagram.

Diagram source
flowchart TB
subgraph W[Write]
L[Change ledger] --> C[Checkpoint, gzip] --> P[PAR2 recovery blocks] --> E[minimodem encode]
end
subgraph T[Bench]
I[USB audio interface] <--> D[Cassette deck]
end
subgraph R[Read back]
X[minimodem decode] --> Q[PAR2 repair] --> V{SHA-256 matches?}
V -- yes --> OK[READ]
V -- no --> NO[STOPPED]
end
E --> I
I --> XThere are three paths.
- Write. Take the ledger as it stands at one commit, write it out as a checkpoint file and gzip it. Add PAR2 recovery blocks, then turn the whole stream into audio tones with minimodem and play it out of the interface into the deck’s AUX input while the deck records.
- Read back. Rewind, press play, and record the deck’s earphone output back into the interface. minimodem turns the tones back into bytes, PAR2 rebuilds whatever the modem lost, and the result is unzipped and checked against the SHA-256 the tool wrote down before it started. If the checksum doesn’t match, the run says STOPPED, and a STOPPED is a result too.
- Calibrate first. Before trusting a deck, the tool records two minutes of a 1 kHz test tone (plus the tones minimodem will use) and measures how fast the deck runs and how much it wobbles (flutter). Those numbers are kept as a bench profile for later reads.

One more rule came out of the first evening at the bench. The audio interface identifies itself as a generic TI audio chip rather than by its brand, which is common for budget interfaces, so the tool pins it by the USB port it is plugged into. If any other sound card answers, nothing plays. I didn’t want a test tone going out of the wrong speaker at 7am (and I really didn’t want the lab’s voice assistant hearing it).
minimodem, briefly
minimodem is a small open source program by Kamal Mostafa that turns your sound card into a modem. It speaks the classic standards, including Bell 103 (300 baud, with 1070 and 1270 Hz tones) and Bell 202 (1200 baud, with 1200 and 2200 Hz tones), plus RTTY and a few others. It can play to the sound card directly or read and write WAV files, which is how I use it, because WAV files are easy to keep, compare and re-decode later.
Setting it up on a Debian or Ubuntu machine is short:
sudo apt install minimodem par2 sox alsa-utils
# a quick loopback test, no tape involved
echo "hello, 1981" | minimodem --tx 300 --file hello.wav
minimodem --rx 300 --file hello.wav
On a real tape you play the WAV out through the interface with aplay, record the deck back with arecord, then decode the recording. minimodem prints a line each time it finds or loses the carrier, plus a confidence figure, which turned out to be a useful health check on its own.
The pseudocode
This is the shape of the tool, simplified. The real version has more refusals in it (wrong sound card, no tone found, a payload that doesn’t verify, etc.).
# write
payload = gzip(build_checkpoint(ledger_at(commit)))
expected = sha256(payload)
stream = frame(payload) + par2_recovery_blocks(payload)
wav = minimodem_encode(stream, baud=300)
require(sound_card() == pinned_card) # nothing else may play
play(wav) # deck is on REC+PLAY
# read back
require(sound_card() == pinned_card)
capture = record(seconds=duration(wav) + 10) # deck is on PLAY
bytes_ = minimodem_decode(capture, baud=300)
payload = par2_repair(unframe(bytes_))
if payload and sha256(payload) == expected:
report("READ", sha=expected)
else:
report("STOPPED", reason=why()) # a result, not a pass
The first round trip
The first real test ran this afternoon on a TDK cassette, side A.
- The test tone. The deck reads 1 kHz as 996.4 Hz, so it runs about 0.36% slow, with about 0.38% flutter. That is pretty good for a portable recorder, and both numbers go into the profile.
- 300 baud. A 379-byte checkpoint (the lab’s very first ledger entry) became 147 seconds of tones. minimodem recovered the whole stream, and the checksum matched.
- 1200 baud. The same checkpoint in 39 seconds. The checksum matched too, but minimodem only caught about a third of the stream and lost the carrier 85 times. PAR2, which stores the data about eleven times over at these sizes, rebuilt the rest.
So 300 baud it is. It’s slow, but for an archive that sits on a shelf, slow is fine (we need more slow, in my opinion). 1200 baud works only because the repair layer is doing most of the work, and a bigger checkpoint or a tired tape would probably push it over.
Where the AI fits
The AI side of the lab did the dull parts well, given the architecture I have been implementing as part of a career spike to encompass Cloud, Devops and now AI. I planned the steps, it wrote the encode, decode and repair checks, it tested them against deliberately broken versions of themselves, and refused to call anything done until the checksum agreed. It also found the audio interface’s identity problem before I did, which saved me some head-scratching at the workstation.
Today? I pressed REC and PLAY like it was 1989, then thought of mom and dad.

