If you use Time Machine to back up your Mac, you can recover your files from Time Machine backup after you factory reset a Mac. You must first reinstall macOS on your Mac before file restoration. If no backup is available, you can still run iBoysoft Data Recovery for Mac in macOS Recovery Mode to scan and recover files.