Question: how to transfer the data from iphone 6 to iphone 8?
Answer: Unlock your iOS device and visit its Settings.
Go to the iCloud > Backup section and turn the iCloud Backup option on.
You can also select the kind of content you want to backup (like contacts, notes, photos, calendar, etc).