Taming Disk Space Hogs with btrfs Snapshots and Automatic Pruning

Introduction to btrfs Snapshots

I’ve been running Linux for years, and one thing I’ve learned is the importance of managing disk space effectively. btrfs has been a game-changer for me - its snapshotting and automatic pruning features have saved me from more than a few headaches. In this article, I’ll share my experience with using btrfs snapshots to keep my systems running smoothly.

What are btrfs Snapshots?

btrfs snapshots are essentially temporary copies of a subvolume, which can be used to roll back changes or recover data if something goes wrong. I’ve seen this go wrong when I’ve accidentally overwritten important files or filled up my disk with unnecessary data. With btrfs snapshots, you can create a snapshot of your system, make changes, and then delete the snapshot if everything works out. The real trick is to use them consistently and make them a part of your workflow.

[Read More]

Taming the Beast: Getting borg Backup to Respect My Limited Laptop Disk Space

Introduction to Borg Backup

I’ve been on the hunt for a reliable backup solution that can handle my laptop’s limited disk space for ages. When I stumbled upon Borg Backup in 2025, I thought I’d finally found the answer. This deduplicating backup program has been a game-changer, but I soon realized that its default settings weren’t exactly optimized for my laptop’s storage constraints. So, I set out to tame the beast and get Borg Backup to respect my laptop’s limited disk space.

[Read More]

Taming Background Tasks with Nohup and Systemd: A Homelab Lesson Learned

Introduction to Background Tasks

As someone who’s spent years running a homelab, I’ve found that managing background tasks is crucial. These tasks need to keep running even after I’ve logged out of my system, and they’re essential for things like backups, system monitoring, and maintenance scripts. I used to rely on screen and tmux to keep these tasks running, but I’ve recently switched to using nohup and systemd. In this article, I’ll share my experience with these tools and provide some practical examples.

[Read More]

Taming rsync: My Backup Scripts and the Quest for Consistent Snapshot Rotation

Introduction to Backup Scripts

I’ve been running my own homelab for years, and I’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 rsync due to its flexibility and reliability. This year, I’ve been focused on fine-tuning my backup scripts to achieve consistent snapshot rotation. Don’t bother with overly complex backup solutions - rsync is a powerful tool that can get the job done.

[Read More]

Recovering from a Failed Borg Backup Repository: Lessons Learned from a Homelab Mishap

Introduction to Borg Backup

I’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’s served me well - until I recently encountered a failed repository. This experience taught me some valuable lessons about recovery and prevention.

Understanding Borg Backup Repositories

Before diving into the recovery process, it’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’ve seen this go wrong when the repository index gets corrupted, so it’s crucial to understand how it works.

[Read More]

Taming CPU Usage Spikes with `systemd` and `ps` in My Home Server Setup

Introduction to CPU Usage Spikes

I’ve had my fair share of CPU usage spikes on my home server, and I’ve learned that they can be caused by a variety of factors, including resource-intensive applications, misconfigured services, or even malware. The real trick is to identify the root cause of the spike and take corrective action. In my experience, using systemd and ps can be a powerful way to manage CPU usage spikes.

[Read More]

What I Would Actually Self-Host Again on Linux

Introduction to Self-Hosting

I’ve spent years running my own Linux servers, and over time, I’ve experimented with a bunch of self-hosted services. Recently, I decided to take a step back and simplify my setup. This involved figuring out what actually works for me and what I’d self-host again on Linux.

Choosing the Right Services

It’s easy to get carried away with all the services available for self-hosting. I’ve seen this go wrong when people try to host too many services at once. The real trick is to prioritize what’s truly necessary. For me, that includes a personal wiki, a photo gallery, and a Git server. These services are crucial for my daily workflow and personal projects.

[Read More]