Using rsync and snapshots for efficient disk backups with btrfs

Introduction to Efficient Disk Backups

I’ve seen many Linux users struggle with backups, whether they’re sysadmins, self-hosters, or homelab enthusiasts. One approach that’s worked well for me is combining rsync with snapshots, particularly when using the btrfs filesystem. In this article, I’ll share how to leverage rsync and btrfs snapshots for robust and space-efficient backups. Don’t bother with other filesystems if you’re serious about snapshots - btrfs is the way to go.

[Read More]

Troubleshooting Disk Usage Issues with btrfs Snapshots and systemd Timers

Introduction to btrfs Snapshots and systemd Timers

As someone who’s been running Linux systems for years, I’ve learned that managing disk usage and ensuring data integrity are crucial tasks. One effective way to achieve this is by utilizing btrfs snapshots and systemd timers. I’ve seen this go wrong when people don’t have a solid backup strategy in place, so it’s worth taking the time to set up. btrfs, a modern file system, offers advanced features like snapshotting, which allows you to create a read-only copy of your file system at a particular point in time. When combined with systemd timers, you can automate the creation and management of these snapshots, making it easier to troubleshoot disk usage issues and maintain a healthy system.

[Read More]

Troubleshooting Btrfs Snapshot Overfill with systemd Timers and Log Rotation

Introduction to Btrfs Snapshots

I’ve worked with Btrfs for years, and its snapshot feature is one of my favorites. It allows you to create a read-only copy of a subvolume at a particular point in time, which is super useful for backups, testing, and rolling back changes. However, managing these snapshots can become a real pain, especially when dealing with a large number of them. In this article, I’ll show you how to troubleshoot Btrfs snapshot overfill issues using systemd timers and log rotation.

[Read More]

Taming systemd Timer Services to Run Your Daily Backup at a Reasonable Hour

Introduction to systemd Timer Services

I’ve been using systemd timer services for years to schedule tasks on my Linux systems, and I have to say, they’re a game-changer. Most Linux distributions, including Debian, Arch Linux, and OpenSUSE, use systemd as their default init system, so it’s worth learning how to use them. In this article, I’ll show you how to use systemd timer services to run daily backups at a reasonable hour.

[Read More]

Reclaiming Disk Space from Unused Snapshot Copies on Btrfs Filesystems

Introduction to Btrfs Snapshots

I’ve worked with Btrfs for a while now, and one of its most useful features is snapshotting. This allows you to create a read-only copy of a subvolume at a given point in time, which is perfect for backups, testing, and rolling back changes. However, over time, these snapshot copies can accumulate and consume significant disk space. In practice, this can become a real issue if you’re not careful.

[Read More]