<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Disaster-Recovery on Linux Colorado</title><link>https://www.linuxcolorado.com/tags/disaster-recovery/</link><description>Recent content in Disaster-Recovery on Linux Colorado</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 04 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.linuxcolorado.com/tags/disaster-recovery/index.xml" rel="self" type="application/rss+xml"/><item><title>Backing Up a Homelab as Code: Docker Configs to a Private Git Repo, Without Leaking Secrets</title><link>https://www.linuxcolorado.com/post/2026-08-04-infra-config-backup-as-code/</link><pubDate>Tue, 04 Aug 2026 00:00:00 +0000</pubDate><guid>https://www.linuxcolorado.com/post/2026-08-04-infra-config-backup-as-code/</guid><description>&lt;p&gt;If my main Docker host died tomorrow, how fast could I rebuild it? For a long time the honest answer was &amp;ldquo;slowly, and from memory.&amp;rdquo; The fix is to treat the box&amp;rsquo;s configuration as &lt;strong&gt;code&lt;/strong&gt;: every &lt;code&gt;docker-compose.yml&lt;/code&gt;, Dockerfile, and config file committed to a private git repo, so reimaging is a &lt;code&gt;git clone&lt;/code&gt; and a handful of &lt;code&gt;docker compose up&lt;/code&gt; commands.&lt;/p&gt;
&lt;p&gt;The trap is that a live Docker tree is a minefield of secrets — &lt;code&gt;.env&lt;/code&gt; files, TLS private keys, API tokens hardcoded into compose files — and pushing any of them to GitHub, even a private repo, is a bell you can&amp;rsquo;t fully un-ring. This post is the repeatable procedure I landed on: what to commit, what to never commit, and the automated checks that keep the second category out.&lt;/p&gt;</description></item></channel></rss>