Efficient ways to take data Backup

Hi,
I have a nice computer that works pretty well form the day it worked .and I had no problem with it since the day of purchase. I use the computer for browsing and to maintain data’s, Watch moved and play games .Sometimes I use it to learn some new software’s also .But recently I have noticed my friend facing a problem with his computer which crashed his entire system with all the data in it. However after a long war he recovered it.
I cautioned myself and I am looking for some on to suggest me the perfect way that recommended by experts to backup software’s and data.
