Follow these steps to turn on iCloud Desktop and Documents backup on your Mac:
Click the Apple icon at the top of the screen on the left.
Choose System Settings from the drop-down menu.
Click Apple ID on the sidebar on the left and choose iCloud.
Go to iCloud Drive > Options.
Choose Desktop & Documents Folders.
Click Done to confirm.