I learned the value of an external hard drive quickly when Windows 10 trashed my home computer. <sigh> That was not a fun time. I'm back on Windows 7 Professional and that's where I'm staying until this computer dies.
Your computer should be backed up regularly and the backup needs to be stored somewhere other than on your computer. External hard drives are portable, secure storage for your data and are commonly used precisely for this purpose.