3
Using Debian Stable as complementary to Testing
(mander.xyz)
Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.
I say the solution is one step earlier. Backups and snapshots.
Use BTRFS or ZFS filesystem on your install and use snapshots to be able to rollback if things go bad.
Here's an example on how to set up BTRFS with automatic snapshots:
https://github.com/david-cortes/snapper-in-debian-guide
For backups Borg is popular:
https://github.com/borgbackup/borg