<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Backups on Linux Café</title>
    <link>https://mrtomlinux.org/tags/backups/</link>
    <description>Recent content in Backups on Linux Café</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 29 Oct 2026 08:34:31 +0200</lastBuildDate>
    <atom:link href="https://mrtomlinux.org/tags/backups/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Testing Restic Incremental Backups on an Active MySQL Server Without Downtime</title>
      <link>https://mrtomlinux.org/post/2026-10-29-testing-restic-incremental-backups-on-an-acti/</link>
      <pubDate>Thu, 29 Oct 2026 08:34:31 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-29-testing-restic-incremental-backups-on-an-acti/</guid>
      <description>&lt;p&gt;Running a production MySQL instance on a small home‑lab server is a common scenario for many of us. The database is the heart of the service, but it also means that any backup strategy must preserve consistency while keeping the application online. Restic is a popular, fast, deduplicating backup tool that works well with block‑level snapshots and remote backends. In this post I’ll walk through a practical, repeatable method to test incremental Restic backups against a live MySQL server, covering the trade‑offs, commands, and pitfalls you’ll encounter.&lt;/p&gt;</description>
    </item>
    <item>
      <title>When a backup script keeps my CPU pegged: a quick ps, nice, ionice tweak to keep the terminal responsive.</title>
      <link>https://mrtomlinux.org/post/2026-10-24-when-a-backup-script-keeps-my-cpu-pegged-a-qu/</link>
      <pubDate>Sat, 24 Oct 2026 10:16:33 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-24-when-a-backup-script-keeps-my-cpu-pegged-a-qu/</guid>
      <description>&lt;p&gt;Backups are the lifeblood of any homelab or small server. I usually run a nightly &lt;code&gt;rsync&lt;/code&gt; job that copies hundreds of gigabytes from a production NFS share to a local Btrfs snapshot. On a 4‑core workstation the job is usually a quiet background task, but sometimes the process spikes to 100 % CPU and the terminal I use to monitor the job freezes. The culprit is often the default scheduling class and priority that &lt;code&gt;rsync&lt;/code&gt; inherits from the shell.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recovering a single config file from a corrupted Borg backup without restoring the whole archive</title>
      <link>https://mrtomlinux.org/post/2026-10-18-recovering-a-single-config-file-from-a-corrup/</link>
      <pubDate>Sun, 18 Oct 2026 09:58:06 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-18-recovering-a-single-config-file-from-a-corrup/</guid>
      <description>&lt;h2 id=&#34;recover-a-single-file-from-a-damaged-borg-archive&#34;&gt;Recover a single file from a damaged Borg archive&lt;/h2&gt;&#xA;&lt;p&gt;When a Borg repository gets corrupted, the instinct is to dump the whole thing back. That’s usually overkill if you just need one config file. Borg actually gives you a fine‑grained extraction tool that can pull a single file even from a partially broken archive.&lt;/p&gt;&#xA;&lt;h3 id=&#34;1-verify-the-repository&#34;&gt;1. Verify the repository&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;borg check /srv/backups/myrepo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;borg check&lt;/code&gt; will surface any integrity problems. If you see corruption, you can try to fix it:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Running My Home NAS Backups with `nice` and `ionice` So My Desktop Never Freezes</title>
      <link>https://mrtomlinux.org/post/2026-10-16-running-my-home-nas-backups-with-nice-and-ion/</link>
      <pubDate>Fri, 16 Oct 2026 09:18:49 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-16-running-my-home-nas-backups-with-nice-and-ion/</guid>
      <description>&lt;p&gt;Running a nightly backup from a home NAS to a desktop is a common task, but the copy can still hog the machine’s resources and make the UI feel sluggish.&lt;br&gt;&#xA;The trick is to let the backup run with low CPU and I/O priority so the desktop stays responsive. Two simple tools—&lt;code&gt;nice&lt;/code&gt; and &lt;code&gt;ionice&lt;/code&gt;—are all you need.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-the-problem-matters&#34;&gt;Why the problem matters&lt;/h2&gt;&#xA;&lt;p&gt;When a &lt;code&gt;rsync&lt;/code&gt; or &lt;code&gt;tar&lt;/code&gt; job copies gigabytes of data, the kernel’s scheduler keeps the process in the foreground class. Even if you’re not actively using the machine, the backup can consume CPU cycles and saturate the disk queue. On a laptop or a desktop with a single NVMe drive, this shows up as a frozen terminal, delayed window redraws, or a sluggish browser.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How a Forgotten SSH Key Stopped My Nightly Off‑Site Borg Backup and the Quick Fix I Implemented</title>
      <link>https://mrtomlinux.org/post/2026-10-01-how-a-forgotten-ssh-key-stopped-my-nightly-of/</link>
      <pubDate>Thu, 01 Oct 2026 08:23:50 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-01-how-a-forgotten-ssh-key-stopped-my-nightly-of/</guid>
      <description>&lt;h2 id=&#34;the-night-i-lost-an-offsite-borg-backup&#34;&gt;The night I lost an off‑site Borg backup&lt;/h2&gt;&#xA;&lt;p&gt;I run a 24/7 home‑lab server that backs up my home directories to a remote NAS with Borg. The backup is triggered by a systemd timer that fires every night at 02:00 UTC. For months it worked flawlessly, but one morning the timer ran, the job logged “ssh: connect to host …: Permission denied”, and the backup vanished into the night. The culprit? A forgotten SSH key.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Running a nightly backup script after logout with systemd user units – no nohup needed</title>
      <link>https://mrtomlinux.org/post/2026-09-17-running-a-nightly-backup-script-after-logout-/</link>
      <pubDate>Thu, 17 Sep 2026 11:25:53 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-09-17-running-a-nightly-backup-script-after-logout-/</guid>
      <description>&lt;h1 id=&#34;running-a-nightly-backup-script-after-logout-with-systemd-user-units--nonohup-needed&#34;&gt;Running a nightly backup script after logout with systemd user units – no nohup needed&lt;/h1&gt;&#xA;&lt;p&gt;I set up a little home‑lab server last year and wanted a way to snap my home directory every night without tying the job to a terminal. The old &lt;code&gt;nohup&lt;/code&gt; trick works, but it leaves orphaned processes and you end up chasing logs in the dark. Systemd user units give a cleaner, more reliable solution that plays nicely with the rest of the system.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Rescuing a Borked Linux System with Rsync and Temporary Snapshots</title>
      <link>https://mrtomlinux.org/post/2026-08-01-rescuing-a-borked-linux-system-with-rsync-and/</link>
      <pubDate>Sat, 01 Aug 2026 09:30:14 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-08-01-rescuing-a-borked-linux-system-with-rsync-and/</guid>
      <description>&lt;h2 id=&#34;introduction-to-rescuing-borked-linux-systems&#34;&gt;Introduction to Rescuing Borked Linux Systems&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve seen this go wrong when you least expect it - a misconfigured system file, a failed update, or an accidental deletion of a critical file can leave your Linux system in a borked state. Whether you&amp;rsquo;re working on a desktop, server, or in a homelab setup, having a reliable method to rescue and restore your system is invaluable. In my experience, &lt;code&gt;rsync&lt;/code&gt; combined with temporary snapshots is one of the most effective tools for this purpose.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recovering from a Failed Borg Backup Repository: Lessons from a Homelab Mishap</title>
      <link>https://mrtomlinux.org/post/2026-07-22-recovering-from-a-failed-borg-backup-reposito/</link>
      <pubDate>Wed, 22 Jul 2026 10:35:16 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-22-recovering-from-a-failed-borg-backup-reposito/</guid>
      <description>&lt;h2 id=&#34;introduction-to-borg-backup&#34;&gt;Introduction to Borg Backup&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been using Borg Backup for years, and it&amp;rsquo;s been a reliable tool in my homelab setup. However, like any complex system, it&amp;rsquo;s not perfect, and I recently had to deal with a failed repository. This experience taught me a lot about the recovery process, and I&amp;rsquo;d like to share my findings with you.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-borg-backup-repositories&#34;&gt;Understanding Borg Backup Repositories&lt;/h2&gt;&#xA;&lt;p&gt;Before we dive into recovery, it&amp;rsquo;s crucial to understand how Borg Backup repositories work. A repository is essentially a storage location for your backups, and it can be hosted locally or remotely. Borg uses archives to store individual backups within the repository, and each archive contains a snapshot of your data at a particular point in time. I&amp;rsquo;ve seen this go wrong when the repository becomes inconsistent, so it&amp;rsquo;s essential to understand the basics.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming Disk Space Consumption on My Home Server with Quarterly rsync Snapshots and a Dash of Log Rotation</title>
      <link>https://mrtomlinux.org/post/2026-07-21-taming-disk-space-consumption-on-my-home-serv/</link>
      <pubDate>Tue, 21 Jul 2026 11:03:41 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-21-taming-disk-space-consumption-on-my-home-serv/</guid>
      <description>&lt;h2 id=&#34;introduction-to-disk-space-management&#34;&gt;Introduction to Disk Space Management&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve learned the hard way that managing disk space is crucial for a healthy and efficient home server. It&amp;rsquo;s easy to let disk space consumption get out of hand, especially with the amount of data we generate these days. I&amp;rsquo;ve seen this go wrong when I didn&amp;rsquo;t keep a close eye on my server&amp;rsquo;s disk usage - it was growing at an alarming rate. To get back on track, I&amp;rsquo;ve implemented a quarterly rsync snapshot and log rotation strategy. The real trick is to find a balance between keeping enough data for backups and not letting logs consume too much disk space.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recovering from a Failed Btrfs Send Receive Operation with Rsync as a Safety Net</title>
      <link>https://mrtomlinux.org/post/2026-07-12-recovering-from-a-failed-btrfs-send-receive-o/</link>
      <pubDate>Sun, 12 Jul 2026 08:52:53 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-12-recovering-from-a-failed-btrfs-send-receive-o/</guid>
      <description>&lt;h2 id=&#34;introduction-to-btrfs-send-and-receive&#34;&gt;Introduction to Btrfs Send and Receive&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been working with Btrfs for a while now, and I have to say, its send and receive functionality is one of my favorite features. It makes efficient backups and data replication across systems a breeze. However, like any complex operation, things can go wrong, and you&amp;rsquo;re left with incomplete or corrupted data. That&amp;rsquo;s where having a safety net like rsync comes in handy.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming Resource-Hungry Background Tasks with nice and ionice</title>
      <link>https://mrtomlinux.org/post/2026-06-30-taming-resource-hungry-background-tasks-with-/</link>
      <pubDate>Tue, 30 Jun 2026 09:03:01 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-06-30-taming-resource-hungry-background-tasks-with-/</guid>
      <description>&lt;h2 id=&#34;introduction-to-resource-management&#34;&gt;Introduction to Resource Management&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve seen this go wrong when you&amp;rsquo;ve got a bunch of background tasks running on your Linux machine, whether it&amp;rsquo;s a homelab, self-hosting services, or just your everyday desktop. If you don&amp;rsquo;t manage these tasks, they can consume way too many resources. That&amp;rsquo;s where &lt;code&gt;nice&lt;/code&gt; and &lt;code&gt;ionice&lt;/code&gt; come in - they&amp;rsquo;re essential tools for taming those resource-hungry background tasks.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-nice-and-ionice&#34;&gt;Understanding nice and ionice&lt;/h2&gt;&#xA;&lt;p&gt;The real trick is understanding how &lt;code&gt;nice&lt;/code&gt; and &lt;code&gt;ionice&lt;/code&gt; work. &lt;code&gt;nice&lt;/code&gt; adjusts the scheduling priority of a process, which is useful when you want to control how much CPU time a process gets. By default, Linux uses a dynamic priority scheduling algorithm, but &lt;code&gt;nice&lt;/code&gt; lets you override this and set a manual priority. The &lt;code&gt;nice&lt;/code&gt; value ranges from -20 (highest priority) to 19 (lowest priority).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming the Beast: Getting borg Backup to Respect My Limited Laptop Disk Space</title>
      <link>https://mrtomlinux.org/post/2026-06-27-taming-the-beast-getting-borg-backup-to-respe/</link>
      <pubDate>Sat, 27 Jun 2026 10:49:30 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-06-27-taming-the-beast-getting-borg-backup-to-respe/</guid>
      <description>&lt;h2 id=&#34;introduction-to-borg-backup&#34;&gt;Introduction to Borg Backup&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been on the hunt for a reliable backup solution that can handle my laptop&amp;rsquo;s limited disk space for ages. When I stumbled upon Borg Backup in 2025, I thought I&amp;rsquo;d finally found the answer. This deduplicating backup program has been a game-changer, but I soon realized that its default settings weren&amp;rsquo;t exactly optimized for my laptop&amp;rsquo;s storage constraints. So, I set out to tame the beast and get Borg Backup to respect my laptop&amp;rsquo;s limited disk space.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming rsync: My Backup Scripts and the Quest for Consistent Snapshot Rotation</title>
      <link>https://mrtomlinux.org/post/2026-06-09-taming-rsync-my-backup-scripts-and-the-quest-/</link>
      <pubDate>Tue, 09 Jun 2026 09:07:15 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-06-09-taming-rsync-my-backup-scripts-and-the-quest-/</guid>
      <description>&lt;h2 id=&#34;introduction-to-backup-scripts&#34;&gt;Introduction to Backup Scripts&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been running my own homelab for years, and I&amp;rsquo;ve learned the hard way that a solid backup strategy is crucial. After trying out various backup tools in 2025, I kept coming back to &lt;code&gt;rsync&lt;/code&gt; due to its flexibility and reliability. This year, I&amp;rsquo;ve been focused on fine-tuning my backup scripts to achieve consistent snapshot rotation. Don&amp;rsquo;t bother with overly complex backup solutions - &lt;code&gt;rsync&lt;/code&gt; is a powerful tool that can get the job done.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recovering from a Failed Borg Backup Repository: Lessons Learned from a Homelab Mishap</title>
      <link>https://mrtomlinux.org/post/2026-05-26-recovering-from-a-failed-borg-backup-reposito/</link>
      <pubDate>Tue, 26 May 2026 08:10:41 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-05-26-recovering-from-a-failed-borg-backup-reposito/</guid>
      <description>&lt;h2 id=&#34;introduction-to-borg-backup&#34;&gt;Introduction to Borg Backup&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve learned the hard way that having a reliable backup system is crucial for any homelab setup. Borg Backup has been my go-to tool for deduplicating backups, and it&amp;rsquo;s served me well - until I recently encountered a failed repository. This experience taught me some valuable lessons about recovery and prevention.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-borg-backup-repositories&#34;&gt;Understanding Borg Backup Repositories&lt;/h2&gt;&#xA;&lt;p&gt;Before diving into the recovery process, it&amp;rsquo;s essential to grasp how Borg Backup repositories work. A repository is the central storage location for all your backups, where Borg stores deduplicated data. When you create a repository, Borg initializes it with a unique ID, ensuring data integrity. I&amp;rsquo;ve seen this go wrong when the repository index gets corrupted, so it&amp;rsquo;s crucial to understand how it works.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
