Losing photos, documents or work files can be stressful. Backing them up is the best protection, and there are two main approaches: cloud storage and local backup.
Cloud storage
Cloud services keep your files on remote servers, so you can reach them from any device with an internet connection. They are convenient and protect against theft or damage to your own devices, but they may involve monthly fees and depend on a good connection.
Local backup
A local backup uses an external drive or a home server that you control. It is fast and does not require ongoing subscription costs, but it can be lost to the same fire, flood or theft that affects your computer if you keep it in the same place.
The best answer is often both
A widely used guideline is the 3-2-1 rule: keep three copies of important data, on two different types of storage, with one copy stored off-site. Combining a local drive with a cloud service is an easy way to follow it.