Hello,
I’d like to ask a few questions about Btrfs features and the btrbk tool in particular.
While browsing the forum, I found relatively few questions related to restoring backups using Btrfs features or frontend tools like btrbk intended to do so. Maybe except in this long post, which I haven’t finished reading.
A few users, including @dalto, seem to have mastered it very well, so I hope he’ll read my prose. End of parenthesis ![]()
I want to use Btrbk.
Here’s my configuration: a triple-boot installation with systemd-boot that took me a long time to concoct (especially for distros that don’t offer a native Btrfs installer).
I don’t want to have to reinstall everything if my disk fails, adapt fstab etc.
A system backup a week or two old wouldn’t be too much trouble, but I’d like to keep manually installed apps as much as possible. I don’t have an insane amount of storage space either. At best the same capacity as the source disk.
I thought of using Btrbk for the attractive aspect of incremental backup, but I have a few reservations:
- if the backup is fast, restoration is less so…
→ you have to restore the full backup and then each of the subsequent incremental backups.
Ultimately, except that Btrfs doesn’t “visually” indicate which is the “parent” snapshot, you have to go into each “Brtfs sub show” snapshot and look for the one that doesn’t have a parent (it’s the father) to restore it first, then the others.
On an incremental backup of the partition / it can be a lot, as it’s constantly moving, especially in rolling, and can become very uncertain or tedious. To restore a multi-boot layout quickly, it’s not the best solution.
Another thing is that btrbk, which makes incremental backups, doesn’t seem to ensure natively that a valid backup-parent exists each time it makes an incremental backup. (or prevent to remove him accidently)
In fact, it’s the user-defined retention rules that govern everything. So I imagine that, with a parameter error, you could very well inadvertently delete the famous parent backup.
For the reasons given above, please tell me if I’m wrong (restoration time for multiple incremental backups, uncertainty as to whether the backup-parent accompanies them properly), I’m interested in a reliable solution on this point, and I have the impression that the simplest solution is a full backup with btrbk, but given the size of my system, two questions arise
- how often? how many copies should I keep?
- how to configure btrbk so that it only backs up the root volume at least,
and not incremental snapshots.
Thank you very much for your answers.