How to Back Up Your iPhone Before a Repair Appointment
Before bringing your iPhone in for repair, back it up if it still turns on and connects to Wi-Fi or a computer. Use iCloud Backup for an automatic cloud copy or create a backup on a Mac or Windows PC for an additional local copy. Confirm the backup completed, protect your Apple Account access, and avoid sharing your password or verification codes with anyone.
Read the full article