@neauoire highly recommend using a filesystem you can cheaply snapshot, like zfs or btrfs, or having extra space left over in an LVM2 so you can make a filesystem-independent snapshot so a rollback isn't as painful as it could be ...