There are all kinds of ways for backing up to prevent data loss. One of those ways is to use the macOS Desktop & Documents iCloud sync feature. If you have enough iCloud storage space, this is not a bad idea. Your stuff will be available to all your devices. This article describes how to activate Desktop & Documents iCloud syncing.