About timeshift, grub and rw-snapshots
Yes, I use btrfs.
I also regularly have snapper
take snapshots every hour…). The same applies to updates with trizen
(pacman).
But since I have a special btrfs-layout and have already done several successful rollbacks manually, I prefer to do it manually (my data is too valuable for me to experiment with)
Yes, it is possible to boot btrfs snapshots with grub.
But the method chosen for timeshift
makes the hairs on the back of my neck stand up because it violates the specifications of the btrfs developers and the general definition of a snapshot.
Problem 1:
A snapshot is unchangeable (!!!). That is the actual purpose of a snapshot. No matter what happens, the snapshot will never break, what has already been written is firmly cemented.
Problem 2:
In order to boot, Linux needs a writable file system.
Solution:
When rolling back, a new, bootable r/w snapshot must be created from the read-only original snapshot. This new snapshot can then be booted. The original always remains unchangeable (and unchanged). If you do something wrong after booting, you still have the original snapshot (!!!) (I think SUSE
does this with snapper
, but because of my different btrfs-layout I don’t dare to use it)
What Timeshift does:
To get around the boot problem, timeshift
does not make read-only snapshots, but always writable snapshots. This means that an entry in grub is enough to boot from any snapshot.
BUT (!!!) if you boot from such a snapshot, it will inevitably change. If something goes wrong, the snapshot is broken (for good) (Because if the original snapshot can be written to, it is no longer unchangeable. That is not at all the point of a snapshot)
You can read about some of these sad cases here in the forum.
With each rescue attempt, a snapshot became unusable. By the time the user had the idea to read the timeshift instructions again, all of his snapshots had been used up.
(Yes, I know that the timeshift instructions help to avoid this error. But I think it is a mistake in the design of timeshift to allow this possibility of error in the first place)
You find good Information about Btrfs in the wiki
I think you’re confusing something here.
An rsync-backup
of a btrfs-snapshot
is not a snapshot itself, and therefore as far as I know is not bootable.
Even if that were possible, it would have the same problem as the timeshift approach described above.