BTRFS; How is it like to?

Tolkem

Well-Known Member
Credits
5,494
@dos2unix you might be interested in this https://fedoramagazine.org/btrfs-snapshots-backup-incremental/ turns out I wasn't completely wrong about the backup part, only it's not an automatic feature, you can however make incremental backups from the snapshots. An excerpt from the article:
Incremental backup

Another useful feature of snapshots is the ability to perform the send task in an incremental way. Let’s take another snapshot.
Code:
sudo btrfs subvolume snapshot -r /home /.snapshots/home-day2
In order to perform the send task incrementally, you need to specify the previous snapshot as a base and this snapshot has to exist in the source and in the destination. Please note the -p option.
Code:
sudo btrfs send -p /.snapshot/home-day1 /.snapshot/home-day2 | sudo btrfs receive /run/media/user/mydisk/bk
And all of this without having to install anything else. That's pretty cool! :) By the way, when I said that snapper handles the whole snapshot process in openSUSE, that's not entirely right, you can handle snapshots with it but BTRFS does all the snapshot process by itself; create and delete them when necessary, usually it creates snapshots when the FS changes, .i.e. some mayor update, and it deletes old snapshots that are no longer necessary. Snnaper can do that as well, but it seems it's not really needed for this to work.
 
Last edited:


Condobloke

Well-Known Member
Credits
10,070
Snapper is available in LM20.1....in the software manager
 

Tolkem

Well-Known Member
Credits
5,494
@dos2unix I installed Fedora 34, and as explained here https://fedoraproject.org/wiki/Changes/BtrfsWithFullSystemSnapshots#Scope and I quote
1. Adjust the default proposed Btrfs layout by Anaconda to be more optimal (potentially derived from the openSUSE one).

2. Add support for automatically configuring Snapper and the Snapper DNF plugin on Btrfs installs

3. Enable Snapper's ability to generate boot entries for GRUB 2 with the snapper plugin (or alternatively use Boom with snapper if we're using BLS)
It would seem that snapper is indeed necessary for the snapshots to be created automatically, otherwise you have to create them manually with the
Code:
btrfs-subvolume
command. I also found that the pkg grub2-snapper-plugin isn't available in fedora's repos, and it's necessary to gain the ability to select a snapshot from the grub menu, and boot to it in read-mode only to test it and see whether it fixes some issues, the same way it is in openSUSE. IMHO, and from my short so far experience dealing with BTRFS, openSUSE is a bit ahead of Fedora, at least for newcomers like me; the Yast installer creates the subvolumes on its own, Anaconda doesn't, at least not if you choose the custom partitioning, like I did in both cases. Maybe it does if you use the guided/automatic partitioning, like Fedora is the only OS and no dual-booting. By the way, I installed the KDE spin, and apart from a few "gotchas" here and there, specially with Wayland, it is working great. I wrote this from it :)
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Staff online

Members online


Top