Was a snapshot before upgrading not possible?
Why isn’t Ghost or Time Machine a thing in Linux
(I guess tar czf would work)
essentially the same idea as ghost:
https://clonezilla.org/