Page 1 of 1

btrfs snapshots and subvolumes

Posted: Sat Apr 13, 2024 8:27 pm
by williwaw

Imagine you work on a file over extended periods of time, repeatedly adding changes and undoing them. Then, at some point you realize: Parts of the changes you undid two hours ago would be very helpful now. And yesterday you had already changed this particular bit, too, before you trashed that design. But of course, because you regularly save your files, old changes are lost. Many people have probably experienced a situation like this before. Wouldn’t it be great if you could recover old file versions without having to manually copy them at regular intervals?

This article is useful for understanding snapshots and subvolumes. Working thru the example by actually creating the test dir and making snapshots etc has been useful for this user.
sudo and sudo chown can be ignored with QV


Re: btrfs snapshots and subvolumes

Posted: Sat Apr 13, 2024 11:04 pm
by TerryH

Earlier this week I did some basic tests to get more of a handle on how these subvolumes work and ease of swapping between them. Yesterday I went for a major change. I created a new snapshot, which became the base to then install the KDE 5 meta package(kfe5-5.27.5_1). The package is 441 MiB and expands to 1.1 GiB.
The install went well and after changing /etc/windowmanager from rox or jwm to startplasma-x11. It mainly functions very well, but there are some minor issues. Apart from the meta package, I also installed dolphin, but due to running as root, it gets permission issues. Rox is working as expected.

The main thing is with the subvolumes, I can easily boot into a standard QV with jwm/rox or to a version with KDE simply by selecting the volume at boot. The important thing is to do a new snapshot prior to the changes, to have a rollback point as changes are written to the system in real time.

Image


Re: btrfs snapshots and subvolumes

Posted: Sun Apr 14, 2024 2:53 am
by BarryK

One change I'm intending to make for the next release, is take a snapshot automatically at the very first bootup.

That will be folder "2" and will be a reference point, as things were originally.


Re: btrfs snapshots and subvolumes

Posted: Sun Apr 14, 2024 9:25 am
by williwaw
TerryH wrote: Sat Apr 13, 2024 11:04 pm

KDE 5 meta package(kfe5-5.27.5_1). The package is 441 MiB and expands to 1.1 GiB.
The install went well................

I remember trying to install KDE with PPM in Tahrpup

PKGet has come a long way, kudos Barry.


Re: btrfs snapshots and subvolumes

Posted: Sun Apr 14, 2024 1:52 pm
by Clarity
BarryK wrote: Sun Apr 14, 2024 2:53 am

... take a snapshot automatically at the very first bootup. ...

Please explain how that is different from the original IMG file, please.

Curious