Thanks for the feedback, any contributions and collaborations to the script are more than welcome. Currently, there are some (very cool) feature requests which I’ll get to when I have the time (or someone does a Pull Request). Regarding crucial bugs: the script basically just calls timeshift to create a snapshot, so any crucial bugs of timeshift will also affect this, obviously. And there are MANY issues with timeshift as it is not so well maintained unfortunately. Nevertheless it is available in Debian, Ubuntu, Redhat and Arch territory, so I think this is fine. And most of the issues are with RSYNC and not so much with BTRFS. Here, if something happens (like battery dies) during the snapshot creation, this means that basically your snapshot might be corrupted (or most likely will just not be created), but your system subvolumes are not changed or anything. Note that the snapshot will be created before an actual update, so if something goes wrong with the update process, then you will have a snapshot of your root and/or home subvolume to return to it.
But these are my thoughts on this, I might miss something of course
Anyways, any idea on the pre hook in DNF?