With Time Machine you can create automatic backups for macOS. All you need is an external storage device that is connected to your computer and Time Machine will create daily, weekly and monthly backups that can be restored instantly. You can even browse previous snapshot before deciding to revert back to an older version of your hard-drive.
Time Machine Information
Time Machine Pricing
Time Machine is a free software that comes package with every version of macOS.