If you have a backup of your Mac from Time Machine, you can restore it to your computer if it becomes damaged or you need to replace your computer.
To restore a backup from Time Machine, you will need to have a backup of your computer available. Connect your backup drive to your computer.
Open Time Machine. In the menu bar at the top of your screen, click on the Time Machine icon and select Enter Time Machine.
Select Restore …