When upgrading to Windows 10 You are presented with an option to Save or Delete files and data. Select "Save"
Worked for me on 3 upgrades. I would strongly recommend before upgrading that you back up all your important files. Or better still, create a system disk image to be on the safe side.