Linux shows you no mercy when you don’t have a backup. There are several backup utilities out there, including System Restore for Windows and Time Machine for Mac OS. Timeshift is an open-source software which takes incremental snapshots of your Linux file system at regular intervals, which you can restore later if you accidentally render your system unusable.
Source: How to Take Linux System Snapshots with Timeshift (LinOxide)