<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Home lab · Alex Moreno</title><link>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/series/home-lab/</link><description>Alex Moreno writes about developer tools, calm software and the occasional home-lab adventure.</description><generator>Hugo</generator><language>en-US</language><managingEditor>hello@example.org (Alex Moreno)</managingEditor><lastBuildDate>Sat, 18 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/series/home-lab/index.xml" rel="self" type="application/rss+xml"/><item><title>Home lab, part 3: backups that actually restore</title><link>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/home-lab-part-3-backups/</link><pubDate>Sat, 18 Apr 2026 00:00:00 +0000</pubDate><guid>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/home-lab-part-3-backups/</guid><description>&lt;p&gt;The first two parts were about &lt;em&gt;running&lt;/em&gt; things. This one is about getting them back.&lt;/p&gt;&#10;&lt;h2 id="the-rule"&gt;The rule&lt;a class="anchor" href="#the-rule" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Every backup job has a matching restore job, and the restore job runs on a schedule. If the restore fails, I get an email, the same way I would if the backup failed.&lt;/p&gt;&#10;&lt;h2 id="the-setup"&gt;The setup&lt;a class="anchor" href="#the-setup" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;Nightly snapshots of every service&amp;rsquo;s data directory with &lt;code&gt;restic&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;A second copy on an external disk that lives in a drawer at a friend&amp;rsquo;s house (rotated monthly).&lt;/li&gt;&#10;&lt;li&gt;A monthly job that restores the latest snapshot into a scratch VM and runs each service&amp;rsquo;s health check against it.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;restic restore latest --target /srv/restore-test&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;docker compose -f /srv/restore-test/compose.yaml up -d&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl --fail http://localhost:8080/healthz&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="what-it-caught"&gt;What it caught&lt;a class="anchor" href="#what-it-caught" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In the first three months the restore test failed twice: once because a database dump was taken mid-write, and once because a config file lived outside the backed-up directory. Neither would have shown up until the day I needed them.&lt;/p&gt;</description></item><item><title>Home lab, part 2: one small server, many services</title><link>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/home-lab-part-2-one-small-server/</link><pubDate>Mon, 09 Mar 2026 00:00:00 +0000</pubDate><guid>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/home-lab-part-2-one-small-server/</guid><description>&lt;p&gt;A fanless mini PC with 16 GB of RAM turns out to be plenty for a family&amp;rsquo;s worth of services.&lt;/p&gt;&#10;&lt;h2 id="one-folder-per-service"&gt;One folder per service&lt;a class="anchor" href="#one-folder-per-service" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Each service gets its own folder with a &lt;code&gt;compose.yaml&lt;/code&gt;, a &lt;code&gt;.env&lt;/code&gt; and a &lt;code&gt;data/&lt;/code&gt; directory. Updating one never touches another.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;photos&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;example/photos:1.42&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;unless-stopped&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="l"&gt;./data:/data&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;ports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="s2"&gt;&amp;#34;127.0.0.1:8081:8080&amp;#34;&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="nothing-on-the-open-internet"&gt;Nothing on the open internet&lt;a class="anchor" href="#nothing-on-the-open-internet" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Everything binds to localhost and is reached through a VPN. It&amp;rsquo;s slower to set up a new device, and I sleep much better.&lt;/p&gt;</description></item><item><title>Home lab, part 1: why I stopped renting everything</title><link>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/home-lab-part-1-why/</link><pubDate>Sat, 14 Feb 2026 00:00:00 +0000</pubDate><guid>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/home-lab-part-1-why/</guid><description>&lt;p&gt;I didn&amp;rsquo;t start a home lab because I love hardware. I started one because I added up my subscriptions.&lt;/p&gt;&#10;&lt;h2 id="three-reasons"&gt;Three reasons&lt;a class="anchor" href="#three-reasons" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Cost.&lt;/strong&gt; Photo storage, password sync, a note app and a media server cost more per year than a small computer.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Ownership.&lt;/strong&gt; When a service shuts down, my data shouldn&amp;rsquo;t go with it.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Learning.&lt;/strong&gt; Running something yourself is the fastest way to understand why the hosted version costs what it does.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="and-one-reason-not-to"&gt;And one reason not to&lt;a class="anchor" href="#and-one-reason-not-to" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Your time is not free. If you don&amp;rsquo;t enjoy this kind of tinkering, the hosted version is a bargain.&lt;/p&gt;</description></item></channel></rss>