How to rollback Btrfs snapshot?
To rollback to an old snapshot; boot into a restore medium (like the arch installer) and mount the Btrfs pool. To rollback “ ROOT ”, first delete or move the unwanted subvolume. The dates of the snapshot are stored under ${snapshot-number}/info. xml if the date needs to be checked.
How to backup Btrfs?
To perform backups of your Btrfs snapshots, you need to keep at least the latest snapshot on both the source (/data/. snapshots) and the destination (/snapshots – external drive) Btrfs filesystems. So, feel free to remove any snapshots other than the latest snapshot on both ends.
Do Btrfs snapshots take up space?
This is because on the btrfs file system, snapshots don’t take up extra space unless there is a change made to the file. You have to first enable quotas on the subvolume you’re interested in: btrfs quota enable /, this will then take a while to account for all the data on the drive.
How do you mount Btrfs subvolume?
You can actually mount a subvolume in basically the same way that you have always mounted entire fillesystems, all you have to do is add “-o subvol=name” or “-o subvolid=ID” to the mount command or /etc/fstab. When you do this, the directory associated with the subvolume will be the top level of the mounted filesystem.
How do btrfs snapshots work?
A snapshot is a virtual copy of the filesystem’s contents; it can be created without copying any of the data at all. So Btrfs makes it possible to group part or all of a system’s storage into a big pool, then share that pool among a set of filesystems, each with its own usage limits.
Should I use LVM with btrfs?
To me LVM is indeed better for managing space with whatever filesystems on top of it, but BTRFS should be used for features specific to it – mainly snapshots. In simple home network use it is probably better to stay away from it.