Create system image or backup

hi there,

I am relatively new to linux, i am using rocky, centos and ubuntu for me to familiarize and know those system. Since i am doing some testing and running some commands and sometimes im afraid to try some of it that my system will break and wont boot anymore.

Any suggestion which application or any steps i should do to take a system backup or an image or an application to do a file backup regularly or any command to do it which is applicable to rocky/centos and ubuntu just incase my system broke and i can easily restore to its last working state.