Category: btrfs

btrfs, linux

How to recover a BTRFS partition

Disclaimer: I take no responsibility for any data loss resulting from following this guide. Try to understand what you are doing at all times and don’t copy-paste commands without reading carefully. BTRFS is a great filesystem for holding data. It is a modern copy-on-write filesystem featuring enhanced data integrity mechanisms to avoid silent data corruption, …

btrfs, nextcloud, nextcloudpi

NextCloudPi backup strategies

This post is a review of the different options that we have when deciding on our backup strategy. As more features have appeared over time, this information has become scattered around this blog, so it is nice to have a review in a single article. It goes without saying that we need to backup our …

btrfs, kernel, linux

Understanding disk usage in Linux

How much space is this file taking from my hard drive? How much free space do I have? How many more files can I fit in the remaining free space? The answer to these questions seems obvious. We all have an instinctive understanding of how filesystems work, and we often picture storing files in disk …

btrfs, linux, OYB software, shell

Easy sync BTRFS snapshots with btrfs-sync

To complement the last BTRFS tool btrfs-snp (which allows us to schedule snapshots), I would like to share a new tool to synchronize them locally or remotely¬† to achieve efficient data redundancy. With btrfs-snp we can replicate our BTRFS snapshots in a different BTRFS system, and have a second copy of our versioned subvolume in …

btrfs, linux, OYB software, shell

Schedule BTRFS snapshots with btrfs-snp

To complement the last BTRFS tool btrfs-du, I would like to share a simple script for creating BTRFS snapshots that plays well with cron and systemd timers. This allows us to easily automate snapshot creation. I was inspired by btrfs-snap by Birger Monsen. Usage btrfs-snp can be run manually, or summoned from cron. Invoke without …

btrfs, linux, OYB software, shell

Check disk space of your BTRFS snapshots with btrfs-du

Today I want to share a simple way to check the state of our BTRFS snapshots. Usage

If path is omitted, it will default to / . We can list easily our snapshots, plus have a clear view of how much data they have in common and how much total overhead are we holding. …