<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mario Fang</title>
    <description>The latest articles on DEV Community by Mario Fang (@mariosfong).</description>
    <link>https://dev.to/mariosfong</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4236055%2F8f2ba62d-c7eb-4621-855f-ffcb4ca04b7a.png</url>
      <title>DEV Community: Mario Fang</title>
      <link>https://dev.to/mariosfong</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mariosfong"/>
    <language>en</language>
    <item>
      <title>The Only Photos I Can't Re-Download Live on an Old PC</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:48:55 +0000</pubDate>
      <link>https://dev.to/mariosfong/the-only-photos-i-cant-re-download-live-on-an-old-pc-nb4</link>
      <guid>https://dev.to/mariosfong/the-only-photos-i-cant-re-download-live-on-an-old-pc-nb4</guid>
      <description>&lt;p&gt;My phone backs up to the cloud like everyone else's. But the family photos — the ones nobody can re-download if they are gone — live on a small server at home, not on a big cloud drive. I want to know exactly where the only copies sleep.&lt;/p&gt;

&lt;p&gt;That is the whole test I apply to anything irreplaceable: if the company behind it shut down tomorrow, or the account got locked, could I still get the files back? Most things I own, I can buy again, download again, rebuild. Family photos are the one dataset where the answer is no. So they get a different setup from everything else: one I can point at, in my own house, and count the copies of on one hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  A dead drive should be an errand, not a funeral
&lt;/h2&gt;

&lt;p&gt;Two drives holding the same photos means one of them can fail on an ordinary Tuesday and nothing is lost. I replace the dead one, the mirror rebuilds, and life goes on. That is the whole point of the setup: the failure I expect most is the one that costs me nothing.&lt;/p&gt;

&lt;p&gt;I did not buy a storage appliance for this. An old PC was already sitting there, and a mirror of two drives is the cheapest honest redundancy I know. Fancy comes later, or never.&lt;/p&gt;

&lt;p&gt;While the mirror rebuilds after a swap, the surviving drive still holds everything, so the house is never down to zero copies. The rebuild is the system doing the boring work for me — that is what I paid for, even though the hardware cost almost nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Phones sync at night, over the home Wi-Fi
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkdgg7uj9j89w7ydzsce3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkdgg7uj9j89w7ydzsce3.webp" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The phones sync to it over the home Wi-Fi at night. Nobody has to remember to plug anything in or open an app and press a button. The photos leave the phone while we sleep, and by morning there are two copies: one on the phone, one on the server.&lt;/p&gt;

&lt;p&gt;That is the part people skip. A backup system that needs remembering is a backup system that stops the week you get busy. Ours runs because nobody has to do anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three copies, and I can count them on one hand
&lt;/h2&gt;

&lt;p&gt;By morning there are two copies: one on the phone, one on the server. And one encrypted copy of everything lives somewhere else. Three copies, each in a different place, each with a different job: the phone is the one we carry, the server is the one that collects, the off-site copy is the one that survives the house itself.&lt;/p&gt;

&lt;p&gt;I like being able to count them without a spreadsheet. If a setup needs a diagram to explain, I probably cannot tell whether it is healthy by looking at it. Three copies, three places — that fits in my head, and that is the point.&lt;/p&gt;

&lt;h2&gt;
  
  
  A backup that shares a roof with the original is only half a backup
&lt;/h2&gt;

&lt;p&gt;One encrypted copy of everything lives somewhere else. A fire, a flood or a break-in does not care how good the mirror is if both drives are in the same room. The off-site copy is the part that turns "I have a backup" into "I can survive losing the house."&lt;/p&gt;

&lt;p&gt;It does not need to be fast or fancy. It needs to exist, to be encrypted, and to be somewhere else.&lt;/p&gt;

&lt;p&gt;The mirror protects against the failure I expect — a dead drive. The off-site copy protects against the failure I dread — losing the room the drives sit in. They are two different jobs, and one copy cannot do both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Boring on purpose
&lt;/h2&gt;

&lt;p&gt;Maintenance is about twenty minutes a month: updates, a disk health report, a glance at the backup log. Boring on purpose. Photo storage should be the least exciting system you own.&lt;/p&gt;

&lt;p&gt;If the log shows the night sync ran and the mirror is healthy, I close it and move on. The system earns its keep by never asking for attention.&lt;/p&gt;

&lt;p&gt;Twenty minutes is the whole budget because there is nothing to tune. No new settings to try, no dashboard to admire, no weekly ritual to keep up. The month I get busy is the month a demanding system would quietly stop. This one does not ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want to start
&lt;/h2&gt;

&lt;p&gt;One old PC, one photo app, one backup that lives somewhere else. That is the whole shopping list. Start with the copy that lives elsewhere — that is the one that saves you when the house itself is the problem — and let the rest grow when it needs to.&lt;/p&gt;

&lt;p&gt;Checklist before you call it done:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Every phone in the house syncs without anyone remembering&lt;/li&gt;
&lt;li&gt;[ ] One drive can die and nothing is lost&lt;/li&gt;
&lt;li&gt;[ ] One encrypted copy lives somewhere else&lt;/li&gt;
&lt;li&gt;[ ] You have looked at the backup log this month&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One question to ask yourself: if this machine died tonight, where would you go for the photos tomorrow morning?&lt;/p&gt;

&lt;p&gt;— Mario&lt;/p&gt;

</description>
      <category>backup</category>
      <category>selfhosted</category>
      <category>homelab</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Air-gapped backup questions people ask me, answered plainly</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:09:09 +0000</pubDate>
      <link>https://dev.to/mariosfong/air-gapped-backup-questions-people-ask-me-answered-plainly-1eok</link>
      <guid>https://dev.to/mariosfong/air-gapped-backup-questions-people-ask-me-answered-plainly-1eok</guid>
      <description>&lt;p&gt;Last month a client asked me, halfway through a call, whether his backup drive counted as air-gapped because he unplugged it on Fridays. Everyone asks a version of that question, and the answer is usually simpler than people expect: an air gap is not a feature you buy, it is a physical fact you can check — after the backup finishes, can anything on the network still reach that drive?&lt;/p&gt;

&lt;p&gt;Here are the questions I get most, answered the way I answer them at a desk.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does "air-gapped" actually mean?
&lt;/h2&gt;

&lt;p&gt;It means there is no path. Not a disabled share, not a permission, not a firewall rule — no cable, no wireless link, nothing that a program on a running machine could use to reach the backup copy.&lt;/p&gt;

&lt;p&gt;That distinction matters because almost everything else we call "protection" is a path with a lock on it. A path with a lock is fine until the day someone finds the key, and ransomware runs on machines that already have the key. An air gap removes the path, so there is nothing to find.&lt;/p&gt;

&lt;h2&gt;
  
  
  Isn't a plugged-in drive good enough if nothing is writing to it?
&lt;/h2&gt;

&lt;p&gt;No, and this is the mistake I see most often. If the cable is connected, the drive is part of the system. It can be mounted, it can be encrypted by something running on your machine, it can be deleted by a script with the right permissions, and it can be reached by an attacker who is already inside your network.&lt;/p&gt;

&lt;p&gt;People picture ransomware as something that goes after files it can see. In practice it goes after everything the machine can write to, including network shares and attached disks, because that is where the copies live. So "idle but connected" is not a gap. It is a target that happens to be quiet right now.&lt;/p&gt;

&lt;p&gt;The moment you can honestly say "the machine has no way to talk to this drive," you have a gap. Until then you have hope.&lt;/p&gt;

&lt;h2&gt;
  
  
  If the drive is disconnected, how do I know the backup actually worked?
&lt;/h2&gt;

&lt;p&gt;You check, and you check on a schedule. A backup you have not looked at is a claim, not a copy.&lt;/p&gt;

&lt;p&gt;The check I use is boring: open the backup, pick a file at random, restore it somewhere harmless, and open it. Do that for a couple of files from different folders. Then, less often, do a wider test — restore a whole folder and confirm the count and the modified dates look sane.&lt;/p&gt;

&lt;p&gt;The reason this matters more with an air gap is that a disconnected drive gets no feedback. A network backup job can email you every night; a drive that leaves the building at the end of the day cannot tell you anything until someone plugs it back in and looks. So the ritual has to be human, and it has to be written down, or it quietly stops happening.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8j77poayqfz2ymwyolbu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8j77poayqfz2ymwyolbu.webp" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The drive isn't here when I need to restore. Then what?
&lt;/h2&gt;

&lt;p&gt;Then you wait, and that is the price of the gap. This is the part people underestimate.&lt;/p&gt;

&lt;p&gt;If your only backup is a drive that lives in a drawer at home, and the office floods or the server dies at 2am, your recovery starts tomorrow morning. For a small business that is usually acceptable. For anything with an uptime promise it is not, and the fix is not to weaken the gap — it is to have a second copy that is close enough to be useful, plus the gapped copy that is far enough to survive.&lt;/p&gt;

&lt;p&gt;So: one copy online for fast recovery, one copy gapped for the day the online copy is wrong. Both, not either.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do I need this at home, or in a small office?
&lt;/h2&gt;

&lt;p&gt;Ask one question: what would you lose if every file on that machine was encrypted tonight and the only copy was the one sitting next to it?&lt;/p&gt;

&lt;p&gt;If the honest answer is "a few photos and some documents I could mostly live without," a drive in a drawer and a habit of copying to it is probably enough. If the answer involves invoices, order history, customer records, or the only copy of work you get paid for, you want the copy physically out of reach, and you want to have tested a restore before you need one.&lt;/p&gt;

&lt;p&gt;Size is not the deciding factor. Whether the data is replaceable is.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;An air gap is not a product category or a setting. It is the state of the backup after you have made it unreachable. If a machine can still write to it, it is not gapped, no matter what the label says.&lt;/p&gt;

&lt;p&gt;So test it, in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the backup.&lt;/li&gt;
&lt;li&gt;Disconnect the drive, then check from the machine that it really is gone — not just unmounted in a menu, but invisible.&lt;/li&gt;
&lt;li&gt;Once a month, restore two files from it and open them.&lt;/li&gt;
&lt;li&gt;Keep the drive somewhere the machine cannot be reached from, and write down who is allowed to plug it back in.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is what we build into RansomShield: the backup finishes and the drive is disconnected on its own, instead of waiting for someone to remember (a smart plug is an optional extra, not the mechanism). To be clear about scope, it protects files — it is not a whole-machine recovery tool and I would not sell it as one.&lt;/p&gt;

&lt;p&gt;— Mario&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I write about backups, self-hosting and keeping systems alive. I also build RansomShield (getransomshield.com), the air-gapped backup tool described above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backup</category>
      <category>ransomware</category>
      <category>selfhosted</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>The Monday report problem: killing hand-built spreadsheets with SQL views</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:14:31 +0000</pubDate>
      <link>https://dev.to/mariosfong/the-monday-report-problem-killing-hand-built-spreadsheets-with-sql-views-41a7</link>
      <guid>https://dev.to/mariosfong/the-monday-report-problem-killing-hand-built-spreadsheets-with-sql-views-41a7</guid>
      <description>&lt;h1&gt;
  
  
  The Monday report problem: killing hand-built spreadsheets with SQL views
&lt;/h1&gt;

&lt;p&gt;Every Monday morning someone in the office opens a spreadsheet that is older than some of the people working here, and starts pasting numbers into it. The problem with that file is not that it is slow. It is that nobody can prove the numbers on it are right without rebuilding the whole thing by hand, and that is the actual cost of a hand-built report.&lt;/p&gt;

&lt;p&gt;I have watched this cycle for years. The file gets updated by whoever is at their desk on Monday. It gets emailed around. Two people keep local copies with slightly different names. Then a figure changes somewhere upstream, and one of those copies is wrong in a way that nobody notices for a month.&lt;/p&gt;

&lt;h2&gt;
  
  
  A hand-built report is a claim, not a measurement
&lt;/h2&gt;

&lt;p&gt;When you paste numbers into cells, what you are really doing is making a statement: this is what the data said when I looked. That statement is only true for the minute it was made. It carries no memory of where the numbers came from, no filter that can be re-run, and no way for the next person to check it without repeating the same manual work.&lt;/p&gt;

&lt;p&gt;A measurement is different. A measurement can be re-performed. If someone questions a number in a view, you point at the query, they read the filter, and the argument is over in a minute. If someone questions a number in a pasted sheet, the only honest answer is "let me go redo it and see if I get the same thing" — and that answer costs you the whole afternoon.&lt;/p&gt;

&lt;h2&gt;
  
  
  The paste is the cheap part; the proof is what costs you
&lt;/h2&gt;

&lt;p&gt;People usually describe this as a time problem. Re-export, re-paste, re-check, three hours gone. But three hours on Monday is not what hurts. What hurts is that every figure in that file has to be defended from scratch, every month, by the one person who remembers how it was built.&lt;/p&gt;

&lt;p&gt;That person is a single point of failure, and they know it. Which is why the file gets more elaborate every year: more tabs, more colours, more footnotes explaining which row was adjusted by hand. None of that is documentation. It is a warning label.&lt;/p&gt;

&lt;h2&gt;
  
  
  Move the logic out of someone's memory and into the schema
&lt;/h2&gt;

&lt;p&gt;The fix is not a better spreadsheet. It is moving the repeated part — the pulling, joining, filtering, summing — into a view in the database, where it lives once and runs every time someone opens it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkl6p1yvrqb5m7yaadf3m.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkl6p1yvrqb5m7yaadf3m.webp" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
A view is just a saved query with a name. You define what a completed order means once: which statuses count, which dates bound the period, which rows are test data and must be excluded. Then every report, dashboard and export reads from that definition instead of from someone's recollection of it.&lt;/p&gt;

&lt;p&gt;The work is mostly deciding, not typing. Half of building a view is sitting with the person who owns the report and asking: why is this row here, why is that one missing, what do we do with the order that shipped in January and was credited in February. Those questions have answers. They are just stored in a person instead of a system, which is why they never survive a holiday.&lt;/p&gt;

&lt;h2&gt;
  
  
  A date filter belongs in the query, not in a person's habit
&lt;/h2&gt;

&lt;p&gt;The single most common failure I see in hand-built reports is period logic. Someone filters "last month" by eyeballing a date column. Someone else includes the first day of the following month because that is when the invoice landed. Both are reasonable, and together they are unreconcilable.&lt;/p&gt;

&lt;p&gt;In a view you decide the rule once: which date field defines the period, whether the boundary is inclusive, and which timezone you mean. After that the number is the same for everyone who asks, which is the entire point. A report that two people can compute two ways is not a report — it is a negotiation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test is whether someone else can re-run it
&lt;/h2&gt;

&lt;p&gt;Here is the check I use, and it takes about ten minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Hand the report to a colleague who has never built it, with no verbal explanation.&lt;/li&gt;
&lt;li&gt;Ask them to tell you what the total would be for a different month.&lt;/li&gt;
&lt;li&gt;If they have to open a spreadsheet and start pasting, the report failed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A view passes that test because the answer is a parameter away. It also passes a second test that matters more: when someone asks why a number moved, you can show the change in the source data instead of guessing.&lt;/p&gt;

&lt;p&gt;None of this makes the report prettier, and it will not save you time in the first month — writing the view takes longer than pasting. What it buys is that the second month, the fifth month, and the month after the person who built it has left, the number still comes out the same way, and anyone can check it.&lt;/p&gt;

&lt;p&gt;That is the trade I keep making: pay once for the definition, then stop paying for the proof.&lt;/p&gt;

&lt;p&gt;— Mario&lt;/p&gt;

</description>
      <category>sysadmin</category>
      <category>sql</category>
      <category>database</category>
      <category>backup</category>
    </item>
    <item>
      <title>What I run on my own servers, and why</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:14:21 +0000</pubDate>
      <link>https://dev.to/mariosfong/what-i-run-on-my-own-servers-and-why-3d0h</link>
      <guid>https://dev.to/mariosfong/what-i-run-on-my-own-servers-and-why-3d0h</guid>
      <description>&lt;p&gt;The last time I rebuilt one of my own servers from scratch, it took an evening, and when I was done I had put back three services and quietly left six in the bin. That gap is the most honest inventory I have ever taken of my self-hosting: what I bothered to reinstall when nobody was watching, and what I had been keeping alive purely because deleting it felt like giving up.&lt;/p&gt;

&lt;p&gt;Self-hosting gets sold as a hobby of accumulation. You start with one thing you actually need, then every tutorial ends with "and now you have another service," and none of them mention the bill that comes due later. The bill isn't money. It's attention.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The real cost of a service is that it becomes yours&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every thing you run comes with a config file, an update cadence, a database that needs backing up, a port, a certificate, and a failure mode you have not met yet. None of that is expensive on the day you install it. All of it is expensive on the day it breaks while you are doing something else.&lt;/p&gt;

&lt;p&gt;So I stopped asking "is this useful?" — everything is useful in the abstract — and started asking one question: &lt;strong&gt;if this stopped working tonight, would I find out before a person did?&lt;/strong&gt; If the answer is no, it isn't a service. It's a liability I am maintaining for free.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Everything that survived is either a watcher, a record, or a way back in&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A reverse proxy holding the certificates.&lt;/strong&gt; Not interesting, but everything else sits behind it and it has almost no moving parts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring that tells me a disk is filling or a backup didn't run.&lt;/strong&gt; The one I would keep if I could only keep one, because it is the only thing watching the others.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A small internal wiki.&lt;/strong&gt; Runbooks, mostly. Written for the version of me at two in the morning who has forgotten how any of this works.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A backup target that the protected machines cannot reach.&lt;/strong&gt; Backups are the one area where "it's working" is not evidence of anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plain SSH.&lt;/strong&gt; So I can still get in when everything in front of it is broken.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Five things, and note the shape of the list: each one either watches the others, documents them, or gets me back in. Nothing on it is there because it's interesting.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm1stpx7x89e28prmww6w.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm1stpx7x89e28prmww6w.webp" alt="A server setup with cables and equipment" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cutting things was the actual skill&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The cuts were harder than the installs, because each one had a story attached.&lt;/p&gt;

&lt;p&gt;The media server went first. I had spent a weekend organising a library I then watched twice. The organising was the hobby, not the watching.&lt;/p&gt;

&lt;p&gt;The note-taking app went next, after I admitted I had been copying its contents into plain files anyway. If the data wants to leave, the tool isn't doing its job.&lt;/p&gt;

&lt;p&gt;Then the dashboard. Beautiful graphs, built from metrics I never acted on. A graph you don't act on is decoration.&lt;/p&gt;

&lt;p&gt;The pattern in all three: I was maintaining software so that it would be available if I ever needed it. Keeping that option open cost more than the option was worth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you can't rebuild it in an evening, you don't own it&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Self-hosting has a failure mode that renting does not: the snowflake. The box that has been patched in place for three years, with two hand-edited files nobody remembers editing, and one dependency that only exists because of an install order. It works perfectly, right up until the disk dies.&lt;/p&gt;

&lt;p&gt;So everything I keep has to be reproducible from a written list — config somewhere I can find it, data backed up, and a rebuild path I have actually walked at least once. Anything I can't rebuild gets fixed or removed. There is no third option where it stays and I hope.&lt;/p&gt;

&lt;p&gt;If you want to prune your own pile, this is the whole test, in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When did I last use it? If you can't name the occasion, delete it.&lt;/li&gt;
&lt;li&gt;If it died tonight, would monitoring tell me, or would a person?&lt;/li&gt;
&lt;li&gt;Does it hold data? Then it has a backup, or it go&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>homelab</category>
      <category>backup</category>
      <category>selfhosted</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>I don't trust any backup I haven't test-restored</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:35:07 +0000</pubDate>
      <link>https://dev.to/mariosfong/i-dont-trust-any-backup-i-havent-test-restored-pjm</link>
      <guid>https://dev.to/mariosfong/i-dont-trust-any-backup-i-havent-test-restored-pjm</guid>
      <description>&lt;p&gt;The backup job has been green every night for a year, and the first real restore is usually the moment somebody finds out what green actually meant. Until a file comes back out of it, a backup is a hope with a schedule attached.&lt;/p&gt;

&lt;p&gt;That sounds harsh until you have watched a restore fail for a reason that had nothing to do with the disk. The bytes were there. Everything around the bytes was not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Green means the job finished, not that the data is there
&lt;/h2&gt;

&lt;p&gt;A backup job reports on itself. It knows it opened the source, wrote something to the destination, and exited without an error. It does not know whether the file it wrote is usable, whether it caught the folder that was still being edited, or whether the destination quietly ran out of space halfway through and logged a warning nobody reads.&lt;/p&gt;

&lt;p&gt;So the green tick is a statement about the process, not about the data. Those are different claims, and only one of them matters at the moment you need it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What fails is usually the chain, not the file
&lt;/h2&gt;

&lt;p&gt;When a restore does go wrong, it is rarely "the backup is corrupt". More often it is one of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the service account that wrote the backup has no read permission on the repository it wrote to&lt;/li&gt;
&lt;li&gt;the encryption key lives on the machine that died&lt;/li&gt;
&lt;li&gt;the catalog knows about the files, but the catalog itself was never backed up&lt;/li&gt;
&lt;li&gt;the backup is on a drive that is currently disconnected, and nobody wrote down where it went&lt;/li&gt;
&lt;li&gt;the software version that reads this format is three upgrades behind, and the old installer was never kept&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every item on that list is invisible during the nightly run. All of them are fatal at 2am.&lt;/p&gt;

&lt;h2&gt;
  
  
  A restore you have never done is a promise somebody else will keep
&lt;/h2&gt;

&lt;p&gt;The dangerous assumption is that restoring is a technical operation that will be performed by whoever is on shift. In a small company that person is one person, and that person is often on a plane, or has left, or is the one asking you for help.&lt;/p&gt;

&lt;p&gt;If the only way to get data back is a sequence of steps that lives in one head, the backup has a single point of failure and it is human. Writing the steps down is not bureaucracy. It is the difference between a procedure and a hope.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the way you would have to do it on the worst day
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fennf2vt4x8pbt47pv6j0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fennf2vt4x8pbt47pv6j0.webp" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Restoring a folder to the same machine, as the same user, with the original software still installed, proves almost nothing. The worst day is the one where the machine is gone.&lt;/p&gt;

&lt;p&gt;So the useful test is deliberately inconvenient:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pick a file you did not choose when you set the backup up.&lt;/li&gt;
&lt;li&gt;Restore it to a different machine — one that never had the backup agent on it.&lt;/li&gt;
&lt;li&gt;Do it with the credentials a colleague would have, not yours.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If any of those steps needs you to log in as an administrator and "just" adjust something, you have found the part of your recovery plan that only works while you are alive and available.&lt;/p&gt;

&lt;h2&gt;
  
  
  A restore that has never been timed is not a plan
&lt;/h2&gt;

&lt;p&gt;"How long will it take to get back?" is the question the business actually asks. It is also the question nobody can answer from a backup log.&lt;/p&gt;

&lt;p&gt;Restore speed depends on where the copy is, how it is compressed, and how much of it you actually need. A full restore of everything is rarely what the business wants — it wants the accounting folder from last Tuesday, which is a completely different operation and often a different tool.&lt;/p&gt;

&lt;p&gt;Time it once, write the number down, and then tell people the number. An honest two hours is manageable. A surprise of two days is a crisis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trust is built by repetition, not by documentation
&lt;/h2&gt;

&lt;p&gt;One successful restore, done once, tells you the setup worked on that day with those files. It does not tell you it still works after an upgrade, a new disk, or a change of who runs the job.&lt;/p&gt;

&lt;p&gt;The habit that actually holds up is small and boring: restore something on a schedule, keep it on the calendar, and write down what happened. Ten minutes a month buys you the right to say "yes" when someone asks whether the backups are good.&lt;/p&gt;

&lt;p&gt;Three things worth starting this week:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Restore one file you didn't pick, to a machine that isn't the original, using an account that isn't yours.&lt;/li&gt;
&lt;li&gt;Time it, and write the number where the business can see it.&lt;/li&gt;
&lt;li&gt;Keep the key, the catalog and the installer somewhere the dead machine cannot take with them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And if the copy is on a drive that disconnects itself after every run, remember that this buys you distance from an attacker, not immunity from testing. Files sitting on that drive as plain copies are easy to check — plug it in, copy one back, look at it. Cheap test, real answer.&lt;/p&gt;

&lt;p&gt;— Mario&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I write about backups, self-hosting and keeping systems alive. I also build RansomShield (getransomshield.com), the air-gapped backup tool described above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backup</category>
      <category>selfhosted</category>
      <category>sysadmin</category>
      <category>ransomware</category>
    </item>
    <item>
      <title>What "IT admin" actually means at a company like mine</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Wed, 18 Nov 2026 14:38:04 +0000</pubDate>
      <link>https://dev.to/mariosfong/what-it-admin-actually-means-at-a-company-like-mine-2kp0</link>
      <guid>https://dev.to/mariosfong/what-it-admin-actually-means-at-a-company-like-mine-2kp0</guid>
      <description>&lt;p&gt;The phone rings on a Tuesday morning and someone says the invoicing system is "slow", which after four questions turns out to mean they cannot save anything at all and have been retyping the same form for twenty minutes. The job is not running machines. The job is absorbing whatever breaks today and making sure the business never has to think about it.&lt;/p&gt;

&lt;p&gt;People outside IT hear the title and picture someone who installs software and keeps the server room cold. That is the smallest part of it. Most days I am a translator between a complaint and a cause, and the machines are just where the evidence happens to live.&lt;/p&gt;

&lt;h2&gt;
  
  
  Most of the day is intake, not engineering
&lt;/h2&gt;

&lt;p&gt;"Slow" is not a symptom, it's a feeling. "The system is down" can mean a network cable, an expired password, a full disk, a database lock, or one person's browser zoomed to 400%.&lt;/p&gt;

&lt;p&gt;So the first skill is not technical. It is asking four questions in the right order without making the person feel interrogated: what were you doing, what did you expect, what actually happened, when did it last work. Half the time the answer already contains the fix. The other half, those four answers take me from a vague complaint to a candidate cause in under a minute, which is the only reason I get to fix anything before lunch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The urgent thing is almost never the important thing
&lt;/h2&gt;

&lt;p&gt;The loudest problem is the one with a person standing next to it. The important work — patching, checking that the backup actually completed, retiring the account of someone who left last month — has no person standing next to it and no deadline except the one I invent.&lt;/p&gt;

&lt;p&gt;That asymmetry is the whole difficulty of the role. If I spend the morning on prevention, nothing visibly happens and someone wonders what I do all day. If I spend it firefighting, everyone sees me working hard while the thing that will page me next month quietly gets worse.&lt;/p&gt;

&lt;p&gt;I stopped treating this as a scheduling problem and started treating it as a policy problem. Prevention gets a slot on the calendar before the week begins, not the leftovers of it. Anything that must happen monthly lives in a checklist with a date attached, because I have learned I will not remember it during a bad week.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsjnfecyn4s7egvxsigu4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsjnfecyn4s7egvxsigu4.webp" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Half the knowledge is knowing the shape of the business
&lt;/h2&gt;

&lt;p&gt;The same server behaves very differently on the last working day of the month than it does on a quiet Wednesday. Reports that nobody mentions for weeks all get run at eight in the morning on the same day.&lt;/p&gt;

&lt;p&gt;A generic administrator can keep a machine healthy. Keeping a company running requires knowing which hour of which day actually matters, whose spreadsheet the finance team cannot work without, and which of the "temporary" workarounds from last year are now load-bearing. None of that is in the documentation. It comes from paying attention while fixing other things.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nobody notices the days that went right
&lt;/h2&gt;

&lt;p&gt;The measure of this job is an absence. No lost invoices, no restore at midnight, no explaining to a customer why their order vanished.&lt;/p&gt;

&lt;p&gt;That makes it a strange thing to be good at, because the better it goes the less visible it is. The reward for a well-run month is the vague impression that nothing needed doing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that actually keeps you out of trouble
&lt;/h2&gt;

&lt;p&gt;You are the single point of failure long before any server is. Every undocumented setup, every credential that only lives in your head, every procedure nobody else has run, is a future outage with your name on it.&lt;/p&gt;

&lt;p&gt;So the work I count as real includes the unglamorous parts: writing down what I just fixed, keeping an inventory that matches reality, making sure a second person can restore something without calling me, and refusing to be the only one who knows how a thing works. Not because documentation is virtuous, but because the alternative is a company that stops when I take a week off.&lt;/p&gt;

&lt;p&gt;Three things I'd tell anyone who just took this job:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write the fix down the same day you find it. You will not remember it in six months, and the version of you who does remember will be on holiday.&lt;/li&gt;
&lt;li&gt;Put prevention on the calendar and defend it like a meeting with your boss, because that is what it is.&lt;/li&gt;
&lt;li&gt;Assume anything that depends on you remembering will eventually not happen. Automate it or accept that it's already broken.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That last one is why I care more about a backup job that runs and disconnects itself than about one I have to supervise. A backup that needs me to remember it is a backup that will stop the week I'm busy — and "I was busy" is not a recovery plan.&lt;/p&gt;

&lt;p&gt;— Mario&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I write about backups, self-hosting and keeping systems alive. I also build RansomShield (getransomshield.com), the air-gapped backup tool described above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backup</category>
      <category>ransomware</category>
      <category>selfhosted</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>The 3-2-1 rule, explained by someone who has actually restored at 3am</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Mon, 16 Nov 2026 14:55:52 +0000</pubDate>
      <link>https://dev.to/mariosfong/the-3-2-1-rule-explained-by-someone-who-has-actually-restored-at-3am-238j</link>
      <guid>https://dev.to/mariosfong/the-3-2-1-rule-explained-by-someone-who-has-actually-restored-at-3am-238j</guid>
      <description>&lt;p&gt;The pager went off just after 3am, and half an hour later I was sitting on a cold floor with a laptop, a failing server, and a decision to make about which copy of the data I trusted. That night taught me more about 3-2-1 than any diagram ever did — mostly because two of my three copies turned out to be less useful than the label suggested.&lt;/p&gt;

&lt;p&gt;Three copies, two media, one offsite. Everyone quotes it. Almost nobody has tested it under pressure, which is where the rule stops being a rule and becomes a series of uncomfortable surprises.&lt;/p&gt;

&lt;h2&gt;
  
  
  The copy that saved the night was the boring one
&lt;/h2&gt;

&lt;p&gt;It was a plain external drive, disconnected, sitting in a cabinet, last written to the previous evening. No agent, no console, no dashboard. It was also the only copy that was both complete and untouched.&lt;/p&gt;

&lt;p&gt;Meanwhile, the "live" replica was corrupted within minutes of the failure — whatever took the primary took it too, because it was reachable from the same place with the same credentials. And the clever snapshot scheme was on the same storage array, so the snapshots went with the array. Copy count said three. Usable copies said one.&lt;/p&gt;

&lt;p&gt;The lesson isn't "replicas are bad". It's that a copy which can be reached by the same mistake isn't a second copy. It's the same copy with a delay.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftoksxac3tyjj9h04x3io.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftoksxac3tyjj9h04x3io.webp" alt="An external drive in a cabinet" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  An offsite copy is a promise your uplink has to keep
&lt;/h2&gt;

&lt;p&gt;My offsite copy was real. It was also much larger than the link it had to come down, and the part I actually needed that night was not the small part.&lt;/p&gt;

&lt;p&gt;Restoring over the wire would have taken until well past the point where anyone else was awake and waiting. So the offsite copy did what it does best in a real emergency: it confirmed the data existed, and then it was too slow to use. We ended up restoring from the local disconnected drive and using the offsite copy only to verify that the files we pulled were the right ones.&lt;/p&gt;

&lt;p&gt;If your offsite copy can only be restored over the internet, measure the restore time before you need it. Nobody has ever been rescued by a copy that takes three days to arrive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two copies in one building is one copy with extra steps
&lt;/h2&gt;

&lt;p&gt;Same room, same power, same switch, same domain, usually the same admin account. Fire, flood, a bad firmware push, a stolen credential — pick any of them and both copies take the hit together.&lt;/p&gt;

&lt;p&gt;The "two media" part of 3-2-1 is often satisfied on paper by a NAS and a USB drive that both live in the same rack. That's media diversity, not resilience. It buys you a disk failure. It doesn't buy you a bad night.&lt;/p&gt;

&lt;h2&gt;
  
  
  A backup you have never restored is a hypothesis
&lt;/h2&gt;

&lt;p&gt;This is the one that hurt. My nightly job reported success for months. What it didn't report was that a whole branch of the directory tree had been silently skipped since a permissions change — the job exited clean, the log said "completed", and the files simply weren't in the archive.&lt;/p&gt;

&lt;p&gt;Nobody runs a restore to a scratch directory on a schedule because it's boring and it eats time. So the failure sits there quietly until the night you actually need the files, and then you find out that your backup software has been lying to you in good faith.&lt;/p&gt;

&lt;p&gt;A restore test doesn't have to be elaborate. Pick a random folder, restore it somewhere harmless, open three files, delete the test. Fifteen minutes a month would have caught mine.&lt;/p&gt;

&lt;p&gt;If I'd known that at the start, I'd have spent those fifteen minutes a month from day one instead of discovering the gap at the worst possible moment. That's the whole "I wish someone had told me" part of this: the backup job is not the proof. The restore is the proof, and it's the only part nobody schedules.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I do differently now
&lt;/h2&gt;

&lt;p&gt;The short version: I stopped counting copies and started counting what survives a single bad decision. Three things, in the order I'd do them again:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Give at least one copy a real gap.&lt;/strong&gt; Unplug it, or make the destination unreachable once the job finishes. Distance beats redundancy — one copy nobody can reach is worth more than three that share a credential.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write down the restore time, not just the backup time.&lt;/strong&gt; If the number is in days, you don't have a recovery plan, you have an archive. Restore something real and time it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the restore test on a calendar.&lt;/strong&gt; Not on instinct, not "when there's time". The test is the backup; the job status is just a hopeful log line.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The 3-2-1 rule is still the right shape, and I still use it. But it's a floor, not a finish line — and it only means anything if you know which of the three copies actually gets you through the night. That night, mine was the one in the cabinet.&lt;/p&gt;

&lt;p&gt;— Mario&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I write about backups, self-hosting and keeping systems alive. I also build RansomShield (getransomshield.com), the air-gapped backup tool described above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backup</category>
      <category>ransomware</category>
      <category>selfhosted</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>What actually happens to your backups during a ransomware run</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Sun, 15 Nov 2026 01:29:14 +0000</pubDate>
      <link>https://dev.to/mariosfong/what-actually-happens-to-your-backups-during-a-ransomware-run-13ig</link>
      <guid>https://dev.to/mariosfong/what-actually-happens-to-your-backups-during-a-ransomware-run-13ig</guid>
      <description>&lt;p&gt;It is 2am and a file server that has been idle for hours starts writing hard — .docx to .docx.locked, one file after another, as fast as the disk will go. Somewhere in that list is the folder your backup job finished writing to earlier that night.&lt;/p&gt;

&lt;p&gt;Nothing in that sequence was aimed at your backup. It was simply reachable.&lt;/p&gt;

&lt;p&gt;That distinction matters, because it is the whole reason "we have backups" so often turns out to be true and useless on the same morning. In the incident write-ups I've read over the years, the backup is almost never destroyed in a separate, dramatic second act. It goes down in the first pass, as ordinary traffic, and nobody notices until someone tries to restore.&lt;/p&gt;

&lt;h2&gt;
  
  
  It follows paths that are already open, not files that are important
&lt;/h2&gt;

&lt;p&gt;Ransomware doesn't know your file names. It enumerates what the machine can see: local volumes, mapped drives, network shares with a stored credential, cloud sync folders running as the logged-in user. Then it encrypts in bulk. Priority is not "the crown jewels", it's "whatever this account can write to, fastest first".&lt;/p&gt;

&lt;p&gt;That is why a backup drive is such an easy target. It isn't attacked as a backup. It's attacked as a folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  A mapped drive is not a separate system
&lt;/h2&gt;

&lt;p&gt;A drive letter is a convenience for humans. To the operating system, &lt;code&gt;Z:&lt;/code&gt; is a path like any other, resolved through the same API, subject to the same permissions. If your backup software writes to it, so can anything else running as you — including something that arrived twenty minutes ago in an email attachment.&lt;/p&gt;

&lt;p&gt;The same goes for the NAS in the corner. If the machine holds a saved credential for it, the share is not remote in any sense that matters. It's a folder, reached slightly slower.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first casualty is whatever would have undone the damage
&lt;/h2&gt;

&lt;p&gt;Before the encryption starts, a lot of these runs do the cleanup, because it's cheap and it's well documented:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;delete the volume shadow copies that would let you roll back&lt;/li&gt;
&lt;li&gt;wipe restore points&lt;/li&gt;
&lt;li&gt;disable or delete the local backup catalogue&lt;/li&gt;
&lt;li&gt;clear the recycle bin&lt;/li&gt;
&lt;li&gt;in some cases, spend time hunting for backup agents and their repositories&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the part I'd underline. It isn't collateral damage. Recovery tooling is a target, and it's attacked first, while the encryption is still running.&lt;/p&gt;

&lt;h2&gt;
  
  
  The credentials travel with the malware
&lt;/h2&gt;

&lt;p&gt;If your nightly job runs as a service account with write access to the repository, then any process running with enough privilege can borrow that access. Backup repositories that require a password are not protected by the password if the password is sitting in a config file on the same box, in plaintext or trivially reversible form.&lt;/p&gt;

&lt;p&gt;This is why "the repository is on another machine" answers the wrong question. The right question is: from this compromised host, with these credentials, what can I still write to and delete?&lt;/p&gt;

&lt;h2&gt;
  
  
  What survived in the write-ups was never online
&lt;/h2&gt;

&lt;p&gt;Strip out the vendor names and the surviving copies tend to fall into three shapes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Physically disconnected.&lt;/strong&gt; Tape on a shelf, a USB drive in a drawer, a drive that only exists during the backup window. No mount, no credentials, no API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Immutable.&lt;/strong&gt; Object storage with versioning and a retention lock, or an append-only repository where deletion requires a separate authority the compromised account doesn't have.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Off the domain and off the network.&lt;/strong&gt; A copy that never authenticated with the same directory, so the stolen credentials are worthless against it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Everything else — the second NAS, the mirrored drive, the sync folder, the replica in the same rack — shares fate with the original more often than people expect, because it shares the same reachability.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision is made before the incident, not during it
&lt;/h2&gt;

&lt;p&gt;You cannot add an air gap at 2am. By the time you're reading the ransom note, the shape of your recovery is already fixed: it's whatever your setup did automatically, at 1am, without anyone thinking about it.&lt;/p&gt;

&lt;p&gt;So the useful question isn't "do we have backups". It's: &lt;em&gt;if this host were fully compromised right now — every credential on it, every mounted share — what would still be intact tomorrow?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If the answer is "the copy that was unplugged", that's a backup. If the answer is "nothing", you don't need more storage. You need distance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fznf13irn3mvaeepfdnbs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fznf13irn3mvaeepfdnbs.png" alt="backup" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Three things worth doing this week:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the backup, then make the destination unreachable — physically or by policy — before you walk away.&lt;/li&gt;
&lt;li&gt;Turn on versioning or object lock on at least one copy, so a delete doesn't propagate.&lt;/li&gt;
&lt;li&gt;Check what the backup account can actually do. If it can delete, it can be used to delete.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;— Mario&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I write about backups, self-hosting and keeping systems alive. I also build RansomShield (getransomshield.com), the air-gapped backup tool described above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backup</category>
      <category>ransomware</category>
      <category>windows</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Why a backup drive that stays plugged in isn't a backup</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Tue, 10 Nov 2026 06:02:48 +0000</pubDate>
      <link>https://dev.to/mariosfong/why-a-backup-drive-that-stays-plugged-in-isnt-a-backup-2f5k</link>
      <guid>https://dev.to/mariosfong/why-a-backup-drive-that-stays-plugged-in-isnt-a-backup-2f5k</guid>
      <description>&lt;p&gt;Most people I know do have a backup. It's an external drive, it's plugged into the PC, and some software copies files to it every night. On paper, they're covered.&lt;/p&gt;

&lt;p&gt;Then ransomware runs once, and they find out what that setup actually was: a second copy of everything, sitting on a drive the malware could reach just as easily as the originals. It encrypts the documents, then it encrypts the backup drive, then it asks for money. I've watched this exact sequence get described in incident write-ups for years, and the "backup" is always in the casualty list.&lt;/p&gt;

&lt;p&gt;Here's the thing nobody tells you when you buy a backup drive: &lt;strong&gt;the value of a backup is not that it exists. It's that it survives the bad day.&lt;/strong&gt; And on the bad day, anything your computer can write to, the ransomware can write to. A plugged-in drive is just more storage for the fire to spread through.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually protects a backup
&lt;/h2&gt;

&lt;p&gt;Three properties, in rough order of how much they matter:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;It can't be reached from the machine it protects.&lt;/strong&gt; Physically disconnected is the strongest form. A drive in a drawer has no API to exploit, no credentials to steal, no mounted filesystem to encrypt. This is the old air gap, and it still works precisely because it's dumb.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It can't be overwritten silently.&lt;/strong&gt; Immutability, versioning, append-only — the software versions of not trusting the writer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;There is more than one of it, in more than one place.&lt;/strong&gt; The classic 3-2-1 shape.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Most home and small-office setups have a weak version of #3 and nothing of #1 or #2. The drive hums along, permanently mounted, permanently writable. That's not a backup strategy. That's a mirror — and a mirror copies the disaster too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why nobody does the simple thing
&lt;/h2&gt;

&lt;p&gt;The simple thing is: back up, then unplug the drive. People don't do it because people are people. Week one, you unplug it religiously. Week six, you forget twice. Month three, the drive lives plugged in, because the one time you needed it you had to crawl under the desk.&lt;/p&gt;

&lt;p&gt;I run servers for a living, and I don't trust my own discipline either. Anything that depends on a human remembering, every single day, forever, is a process designed to fail politely.&lt;/p&gt;

&lt;p&gt;So the disconnect has to be part of the backup itself — automatic, every run, no willpower involved. That's the whole idea behind the tool I ended up building for my own machines: the backup finishes, the drive ejects itself, and from that moment the copy simply isn't in the building as far as the network is concerned. If the PC gets hit an hour later, the backup is a dumb plastic box with a platter in it, and ransomware has nothing to say to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The uncomfortable test
&lt;/h2&gt;

&lt;p&gt;If you want to know whether you have a backup or a mirror, ask one question: if this machine were fully compromised tonight — every credential, every mounted drive — what would still be intact tomorrow morning?&lt;/p&gt;

&lt;p&gt;If the answer is "nothing," you don't have a backup problem you can solve with more storage. You have a reachability problem. Unplug something.&lt;/p&gt;

&lt;p&gt;— Mario&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I write about backups, self-hosting and keeping systems alive. I also build RansomShield (getransomshield.com), the air-gapped backup tool described above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backup</category>
      <category>ransomware</category>
      <category>windows</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>I run servers for a living. I still couldn't buy the backup I wanted, so I built it.</title>
      <dc:creator>Mario Fang</dc:creator>
      <pubDate>Tue, 10 Nov 2026 02:29:55 +0000</pubDate>
      <link>https://dev.to/mariosfong/i-run-servers-for-a-living-i-still-couldnt-buy-the-backup-i-wanted-so-i-built-it-ca</link>
      <guid>https://dev.to/mariosfong/i-run-servers-for-a-living-i-still-couldnt-buy-the-backup-i-wanted-so-i-built-it-ca</guid>
      <description>&lt;p&gt;I look after servers for a company. OA systems, databases, NAS boxes, the lot. Backups at work are boring in the good way: proper software, proper rotation, somebody's job to check the logs. Mine.&lt;/p&gt;

&lt;p&gt;The problem was my own machines, and the small offices I help out now and then. For those, I wanted something very specific:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Back up every night, on a schedule, no human involved&lt;/li&gt;
&lt;li&gt;To a plain USB drive, because that's what small offices actually have&lt;/li&gt;
&lt;li&gt;And when the backup finishes, the drive disconnects itself&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last part is the whole point. Ransomware can't encrypt a drive that isn't there. Every backup tool I tried keeps the target mounted 24/7, which means the night your machine gets hit is the night your backups get hit too. They finish each other's sentences.&lt;/p&gt;

&lt;p&gt;I looked around properly before writing any code. Veeam Agent is genuinely good and free, but the drive stays attached. Acronis wants to sell me a cloud suite. The NAS route works, but it means buying another box and becoming the person who maintains it. All I wanted was a backup that hangs up the phone when it's done talking.&lt;/p&gt;

&lt;p&gt;So I built it. It's called RansomShield, and the idea fits in one sentence: backup runs, report goes out, drive letter disappears.&lt;/p&gt;

&lt;p&gt;How it works on my own PC: a scheduled run copies the folders I picked to the USB drive, checks the result, sends me a report (email, or Feishu in my case), then removes the drive. If it spots files changing in ways that look like ransomware mid-run, it aborts and leaves the drive unmounted, so a bad night doesn't take the last good backup with it.&lt;/p&gt;

&lt;p&gt;It's been running on my machine for months. I don't think about it most days, which is exactly what I wanted from it.&lt;/p&gt;

&lt;p&gt;Some honest notes, because I'd rather say them here than have you find them:&lt;/p&gt;

&lt;p&gt;Windows only. That's the world I work in.&lt;br&gt;
It's not pretty. The installer has a wizard, the backup itself just runs and reports.&lt;br&gt;
The installer isn't code-signed yet, so Windows SmartScreen will warn you on first install. The site shows the SHA-256 and how to get past the warning. A certificate is on my list; it isn't free, and neither am I yet.&lt;br&gt;
It costs $9 a month or $79 a year per PC, because free turned out not to be a business model I can maintain in my spare hours.&lt;/p&gt;

&lt;p&gt;I'm not a company with a marketing team. I'm the guy who resets your password and then goes home and writes backup software. If that trade sounds fair to you, the site is getransomshield.com. If it doesn't, the idea at the top of this post is free: whatever tool you use, don't leave the backup drive plugged in.&lt;/p&gt;

&lt;p&gt;— Mario&lt;/p&gt;

</description>
      <category>backup</category>
      <category>ransomware</category>
      <category>windows</category>
      <category>selfhosted</category>
    </item>
  </channel>
</rss>
