As @Servant of Cats has posted, iCloud is not really designed as a backup service for Mac computers. Yes, iPhones and iPads can backup to the cloud, but not Macs.
Fortunately, your Mac already has the Time Machine application installed, and that IS designed to backup your Mac. All you need to do is supply an external storage drive and do a quick setup. TM will do an initial backup of all the files on your computer, and then continuously backup any changes that are made, including new files and changes to files already backed up. Use an external drive that is 2x-3x the size of your internal startup drive.
You would be wise to put Time Machine to use. If not TM, then implement another backup strategy using CCC or SuperDuper! as mentioned earlier.