Migrate from 8 to 10 (fresh install)

hi will i lose all my setting ,my modify form and doctype, if i do backup from all 8 then restore to new version 10 ?

is this command #rm -rf node_modules modify will lost my all setiing?

thankyou for help