Blog · A home network run like a small office
The backup that filled its own disk
The outside watcher said fine while the app was down. A backup needs a free-space check, and a check-in needs to mean something.
In this series · Chapter 10, After the rebuildShow all 49 partsHide the list
1. Where it started
- 01Why I'm running my home like a small office
- 02What a read-only audit of my network found
- 03The first changes, and the ones I said no to
- 04Reuse first, build only what's missing
- 05Fifteen decisions before the first line of code
2. Remote access and keys
- 06One way in from outside
- 07An address that keeps itself up to date
- 08Where the passwords live
- 09Keys that can do one thing
3. Monitoring
- 10Is it my network or the internet provider?
- 11A watcher outside the house, and backups I've restored
- 12The drill that found the bug
- 13Alerts that only reach my phone when something needs me
- 14I had the monitor audit itself
- 15Teaching the hub to stop crying wolf
4. The network redesign
- 16"Don't take down my internet": the routine before every change
- 17The firewall upgrade, two days late
- 18Keeping the plan when the builder wanted to drop it
- 19Two Wi-Fi drops, and knowing when to stop
- 20The router at 90 percent
- 21Moving 40 gadgets without touching each one
5. The media server
6. The control center
- 24An overnight prototype, and bars instead of dials
- 25A nice hub, tucked away in a drawer
- 26Instructions for a phone I don't own
- 27Three checks before anything goes live
- 28Buttons with a seatbelt
- 29Rewind: replaying a Wi-Fi outage
- 30"I just want a more sensible layout"
7. Security
- 31A security scoreboard that started at a D
- 32Who's knocking: a security tab in two evenings
- 33Matching every program to the public flaw lists
- 34A DNS log for the house
- 35A weekly scan that can't annoy anyone
- 36The week of the scary flaw list
8. A private AI assistant
9. How the work got done
- 38Keeping a non-developer in charge
- 39A house manual that rebuilds itself every night
- 40My AI assistant keeps blocking itself, and I'm glad
- 41What it cost, what's next, and what I'd bring to an office
10. After the rebuild
- 42The backup that filled its own disk
- 43Two messages, one second, wrong order
- 44My help tool said "fine" at 7 megabits
11. Groceries
A backup is supposed to save you on a bad day. On November 1, mine caused one.
What happened
That morning, the hub's front page still loaded, but nothing behind it worked. Every attempt to read its database failed. The disk on the machine that runs it was completely full: 123 of 123 gigabytes. I found out because I went to use the hub. No alert told me.
The evening before, a side project had attached a large shared folder, about 1.8 terabytes, inside the folder the nightly backup copies. The backup bundled up everything it found there and treated the attached folder as if it lived on that disk. The bundle reached 47 gigabytes, and then the disk had no room left. Six scheduled jobs failed that night, the backup among them, and several apps on that machine went down too.
The backups themselves were safe. The bloated file never reached the backup storage, and a rerun that morning made a good backup in both places it's kept.
Why the watcher said everything was fine
I'd set up an outside watcher so the house can't go quiet without someone noticing. It gets a check-in every minute. But that check-in only proved the machine was on, and the machine was on. The app running on it had stopped working. So through the whole outage, the watcher reported that all was well.
Whose mistake it was
The backup script never checked for room before it started. My AI coding assistant wrote it and I approved it, so that one's on us. Another piece of work had put the big folder in its path, and the two only collided at night, when nobody was looking.
The fixes
- The backup now stays on its own disk and skips the shared folder.
- Before it starts, it adds up what it's about to copy and stops if the machine would drop under 5 gigabytes free. In testing, it estimated 494 megabytes against 518 copied.
- A failed run cleans up after itself.
- The watcher's check-in now has to be earned. It only goes out if the hub answers and the disk has at least 3 gigabytes free.
We tested each guard by forcing it to fail. A made-up floor of 1,000 gigabytes stopped both the backup and the check-in, and each one said why. Then both ran for real.
Two questions I ask about backups now
What happens if the thing it copies suddenly gets much bigger? And what stops it from filling the disk? I look at monitoring differently now too. "The server is on" and "the app works" are different answers.